From fe22198db365eb60e041ee7c702fa457c7fb5aef Mon Sep 17 00:00:00 2001 From: Robert Nemes Date: Wed, 23 Aug 2023 15:10:59 +0100 Subject: [PATCH] Updated unit test --- tests/unit/testplan/runnable/interactive/test_api.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/unit/testplan/runnable/interactive/test_api.py b/tests/unit/testplan/runnable/interactive/test_api.py index d24f54416..a1b5c25cd 100644 --- a/tests/unit/testplan/runnable/interactive/test_api.py +++ b/tests/unit/testplan/runnable/interactive/test_api.py @@ -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 @@ -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): @@ -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):