Skip to content

Commit

Permalink
Add test for CI suite (#18350)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Apr 10, 2024
1 parent 6bcc28d commit a887f6d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ paths:
Update Email:
value:
email: [email protected]
verified: true
Update Last Name & Date of Birth:
value:
lastName: Baker
Expand Down
2 changes: 1 addition & 1 deletion samples/schema/postman-collection/postman.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"email\" : \"[email protected]\"\n}",
"raw": "{\n \"email\" : \"[email protected]\",\n \"verified\" : true\n}",
"options": {
"raw": {
"language": "json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ def test_request_with_array_strings(self):
# check values
self.assertTrue(set(data.get("tags")) == {"user", "admin", "guest"})

def test_request_boolean_field(self):
# item
item = self.json_data['item'][0]['item'][0]['item'][1]
self.assertEqual(item['name'], 'Update Email')
self.assertEqual(item['request']["method"], 'PATCH')
self.assertEqual(item['request']["body"]["raw"], '{\n "email" : "[email protected]",\n "verified" : true\n}')


if __name__ == '__main__':
unittest.main()

0 comments on commit a887f6d

Please sign in to comment.