fix: pickle BufferedReader TypeError in upload feature

This commit is contained in:
debugtalk
2020-07-30 11:40:32 +08:00
parent 17ea5c594e
commit 47ee777085
3 changed files with 8 additions and 2 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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",