Skip to content

Commit

Permalink
test modification
Browse files Browse the repository at this point in the history
  • Loading branch information
KissPeter committed Feb 6, 2020
1 parent c8c4a9b commit 0120b01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def test_integer_status_code(self):
required_report_fields = ['status', 'sub_reports', 'name', 'request_body', 'request_headers', 'state',
'request_method', 'reason', 'request_url', 'response', 'test_number']
last_report = self.get_last_report_file()
assert_msg = json.dumps(last_report, sort_keys=True, indent=2)
for field in required_report_fields:
assert field in last_report.keys(), json.dumps(last_report, sort_keys=True, indent=2)
assert last_report['parsed_status_code'] == 500
assert field in last_report.keys(), assert_msg
if last_report.get('parsed_status_code') is not None:
assert last_report['parsed_status_code'] == 500, assert_msg

0 comments on commit 0120b01

Please sign in to comment.