fix #942: type_match None

This commit is contained in:
debugtalk
2020-06-21 15:04:04 +08:00
parent 10fea27099
commit 286dbbfe55
5 changed files with 19 additions and 1 deletions

View File

@@ -48,6 +48,9 @@ teststeps:
validate:
- eq: ["status_code", 200]
- eq: ["body.data", "This is expected to be sent back as part of response body: bar12-$expect_foo2-bar21."]
- type_match: ["body.json", None]
- type_match: ["body.json", NoneType]
- type_match: ["body.json", null]
-
name: post form data
variables:

View File

@@ -57,6 +57,9 @@ class TestCaseRequestWithFunctions(HttpRunner):
"body.data",
"This is expected to be sent back as part of response body: bar12-$expect_foo2-bar21.",
)
.assert_type_match("body.json", "None")
.assert_type_match("body.json", "NoneType")
.assert_type_match("body.json", None)
),
Step(
RunRequest("post form data")