Skip to content

Commit

Permalink
Updated unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rnemes committed Aug 23, 2023
1 parent 1fe3225 commit fe22198
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/unit/testplan/runnable/interactive/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,14 @@ def test_put(self, api_env):
compare_json(rsp_json, json_report, ignored_keys=["runtime_status"])

ihandler.run_all_tests.assert_called_once_with(
shallow_report=None,
await_results=False
shallow_report=None, await_results=False
)

def test_put_filtered(self, api_env):
"""Test updating the Report resource via PUT."""
client, ihandler = api_env

json_report = ihandler.report.shallow_serialize()
json_report = ihandler.report.serialize()
json_report["runtime_status"] = report.RuntimeStatus.RUNNING
rsp = client.put("/api/v1/interactive/report", json=json_report)
assert rsp.status_code == 200
Expand All @@ -187,8 +186,7 @@ def test_put_filtered(self, api_env):
compare_json(rsp_json, json_report, ignored_keys=["runtime_status"])

ihandler.run_all_tests.assert_called_once_with(
shallow_report=json_report,
await_results=False
shallow_report=json_report, await_results=False
)

def test_put_reset(self, api_env):
Expand All @@ -204,8 +202,7 @@ def test_put_reset(self, api_env):
compare_json(rsp_json, json_report, ignored_keys=["runtime_status"])

ihandler.reset_all_tests.assert_called_once_with(
shallow_report=None,
await_results=False
shallow_report=None, await_results=False
)

def test_put_validation(self, api_env):
Expand Down

0 comments on commit fe22198

Please sign in to comment.