mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 01:39:39 +08:00
fix: pickle BufferedReader TypeError in upload feature
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
- fix: parameters feature with custom functions
|
- fix: parameters feature with custom functions
|
||||||
- fix: request json field with variable reference
|
- fix: request json field with variable reference
|
||||||
|
- fix: pickle BufferedReader TypeError in upload feature
|
||||||
|
|
||||||
## 3.1.3 (2020-07-06)
|
## 3.1.3 (2020-07-06)
|
||||||
|
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ def merge_variables(
|
|||||||
|
|
||||||
step_new_variables[key] = value
|
step_new_variables[key] = value
|
||||||
|
|
||||||
merged_variables = copy.deepcopy(variables_to_be_overridden)
|
merged_variables = copy.copy(variables_to_be_overridden)
|
||||||
merged_variables.update(step_new_variables)
|
merged_variables.update(step_new_variables)
|
||||||
return merged_variables
|
return merged_variables
|
||||||
|
|
||||||
|
|||||||
@@ -218,7 +218,12 @@ from request_methods.request_with_functions_test import (
|
|||||||
def test_make_requests_with_json_chain_style(self):
|
def test_make_requests_with_json_chain_style(self):
|
||||||
step = {
|
step = {
|
||||||
"name": "get with params",
|
"name": "get with params",
|
||||||
"variables": {"foo1": "bar1", "foo2": 123, "sum_v": "${sum_two(1, 2)}","myjson":{"name": "user", "password": "123456"}},
|
"variables": {
|
||||||
|
"foo1": "bar1",
|
||||||
|
"foo2": 123,
|
||||||
|
"sum_v": "${sum_two(1, 2)}",
|
||||||
|
"myjson": {"name": "user", "password": "123456"},
|
||||||
|
},
|
||||||
"request": {
|
"request": {
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"url": "/get",
|
"url": "/get",
|
||||||
|
|||||||
Reference in New Issue
Block a user