-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4430ce0
commit a3e92ae
Showing
131 changed files
with
2,211 additions
and
919 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,8 @@ class Test_Schema_Request_Cookies: | |
|
||
def setup_request_method(self): | ||
self.request = weblog.get( | ||
"/tag_value/api_match_AS001/200", cookies={"secret": "any_value", "cache": "any_other_value"}, | ||
"/tag_value/api_match_AS001/200", | ||
cookies={"secret": "any_value", "cache": "any_other_value"}, | ||
) | ||
|
||
@missing_feature(context.library < "[email protected]") | ||
|
@@ -151,7 +152,10 @@ def test_request_method(self): | |
"""can provide request request body schema""" | ||
schema = get_schema(self.request, "req.body") | ||
assert self.request.status_code == 200 | ||
assert contains(schema, [{"main": [[[{"key": [8], "value": [16]}]], {"len": 2}], "nullable": [1]}],) | ||
assert contains( | ||
schema, | ||
[{"main": [[[{"key": [8], "value": [16]}]], {"len": 2}], "nullable": [1]}], | ||
) | ||
|
||
|
||
@rfc("https://docs.google.com/document/d/1OCHPBCAErOL2FhLl64YAHB8woDyq66y5t-JGolxdf1Q/edit#heading=h.bth088vsbjrz") | ||
|
@@ -177,8 +181,14 @@ def test_request_method(self): | |
schema = get_schema(self.request, "req.body") | ||
assert self.request.status_code == 200 | ||
assert ( | ||
contains(schema, [{"main": [[[{"key": [8], "value": [8]}]], {"len": 2}], "nullable": [8]}],) | ||
or contains(schema, [{"main": [[[{"key": [8], "value": [16]}]], {"len": 2}], "nullable": [1]}],) | ||
contains( | ||
schema, | ||
[{"main": [[[{"key": [8], "value": [8]}]], {"len": 2}], "nullable": [8]}], | ||
) | ||
or contains( | ||
schema, | ||
[{"main": [[[{"key": [8], "value": [16]}]], {"len": 2}], "nullable": [1]}], | ||
) | ||
or contains( | ||
schema, | ||
[ | ||
|
@@ -222,7 +232,12 @@ class Test_Schema_Response_Body: | |
def setup_request_method(self): | ||
self.request = weblog.post( | ||
"/tag_value/payload_in_response_body_001/200", | ||
data={"test_int": 1, "test_str": "anything", "test_bool": True, "test_float": 1.5234,}, | ||
data={ | ||
"test_int": 1, | ||
"test_str": "anything", | ||
"test_bool": True, | ||
"test_float": 1.5234, | ||
}, | ||
) | ||
|
||
def test_request_method(self): | ||
|
@@ -251,7 +266,12 @@ class Test_Schema_Response_Body_env_var: | |
def setup_request_method(self): | ||
self.request = weblog.post( | ||
"/tag_value/payload_in_response_body_001/200?X-option=test_value", | ||
data={"test_int": 1, "test_str": "anything", "test_bool": True, "test_float": 1.5234,}, | ||
data={ | ||
"test_int": 1, | ||
"test_str": "anything", | ||
"test_bool": True, | ||
"test_float": 1.5234, | ||
}, | ||
) | ||
|
||
def test_request_method(self): | ||
|
@@ -277,8 +297,14 @@ class Test_Scanners: | |
def setup_request_method(self): | ||
self.request = weblog.get( | ||
"/tag_value/api_match_AS001/200", | ||
cookies={"mastercard": "5123456789123456", "authorization": "digest_a0b1c2", "SSN": "123-45-6789",}, | ||
headers={"authorization": "digest a0b1c2",}, | ||
cookies={ | ||
"mastercard": "5123456789123456", | ||
"authorization": "digest_a0b1c2", | ||
"SSN": "123-45-6789", | ||
}, | ||
headers={ | ||
"authorization": "digest a0b1c2", | ||
}, | ||
) | ||
|
||
@missing_feature(context.library < "[email protected]") | ||
|
@@ -295,7 +321,10 @@ def test_request_method(self): | |
{ | ||
"SSN": [8, {"category": "pii", "type": "us_ssn"}], | ||
"authorization": [8], | ||
"mastercard": [8, {"card_type": "mastercard", "type": "card", "category": "payment"},], | ||
"mastercard": [ | ||
8, | ||
{"card_type": "mastercard", "type": "card", "category": "payment"}, | ||
], | ||
}, | ||
{ | ||
"SSN": [[[8, {"category": "pii", "type": "us_ssn"}]], {"len": 1}], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.