mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 17:29:56 +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: request json field with variable reference
|
||||
- fix: pickle BufferedReader TypeError in upload feature
|
||||
|
||||
## 3.1.3 (2020-07-06)
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ def merge_variables(
|
||||
|
||||
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)
|
||||
return merged_variables
|
||||
|
||||
|
||||
@@ -218,7 +218,12 @@ from request_methods.request_with_functions_test import (
|
||||
def test_make_requests_with_json_chain_style(self):
|
||||
step = {
|
||||
"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": {
|
||||
"method": "GET",
|
||||
"url": "/get",
|
||||
|
||||
Reference in New Issue
Block a user