From 35667b31ddf1ce47a56ccbf4db9896dbc165ad0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 23 Mar 2018 23:33:36 +0100 Subject: Cleanup market from_config --- test.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test.py') diff --git a/test.py b/test.py index 5b9c56c..637a305 100644 --- a/test.py +++ b/test.py @@ -3682,7 +3682,7 @@ class MainTest(WebMockTestCase): args_mock.after = "after" self.assertEqual("", stdout_mock.getvalue()) - main.process(3, "config", 1, "report_path", args_mock, "pg_config") + main.process("config", 3, 1, args_mock, "report_path", "pg_config") market_mock.from_config.assert_has_calls([ mock.call("config", args_mock, pg_config="pg_config", market_id=3, user_id=1, report_path="report_path"), @@ -3719,8 +3719,8 @@ class MainTest(WebMockTestCase): self.assertEqual(2, process.call_count) process.assert_has_calls([ - mock.call(3, "config1", 1, "report_path", args_mock, "pg_config"), - mock.call(1, "config2", 2, "report_path", args_mock, "pg_config"), + mock.call("config1", 3, 1, args_mock, "report_path", "pg_config"), + mock.call("config2", 1, 2, args_mock, "report_path", "pg_config"), ]) with self.subTest(parallel=True): with mock.patch("main.parse_args") as parse_args,\ @@ -3749,9 +3749,9 @@ class MainTest(WebMockTestCase): self.assertEqual(2, process.call_count) process.assert_has_calls([ mock.call.__bool__(), - mock.call(3, "config1", 1, "report_path", args_mock, "pg_config"), + mock.call("config1", 3, 1, args_mock, "report_path", "pg_config"), mock.call.__bool__(), - mock.call(1, "config2", 2, "report_path", args_mock, "pg_config"), + mock.call("config2", 1, 2, args_mock, "report_path", "pg_config"), ]) @mock.patch.object(main.sys, "exit") -- cgit v1.2.3