X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git;a=blobdiff_plain;f=test.py;h=637a3054c4d8449b3fb0963e4180e62b0b837567;hp=5b9c56c02effd0f7a983f78b7c9b161f614e38bd;hb=35667b31ddf1ce47a56ccbf4db9896dbc165ad0a;hpb=88e486a61fd563b3d30d34e1962269eae5a931bf 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")