diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-30 14:21:41 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-30 14:21:41 +0200 |
commit | 52ea19aa73348a523b3b884e2a7fb749b2bf4f19 (patch) | |
tree | 1325863772f475fa00953a34489ab94fbe7f828a /tests/test_main.py | |
parent | fcb18fead0e92ddc075416e11934b62afa3e2ba3 (diff) | |
download | Trader-52ea19aa73348a523b3b884e2a7fb749b2bf4f19.tar.gz Trader-52ea19aa73348a523b3b884e2a7fb749b2bf4f19.tar.zst Trader-52ea19aa73348a523b3b884e2a7fb749b2bf4f19.zip |
Fix price imprecision due to floats
Diffstat (limited to 'tests/test_main.py')
-rw-r--r-- | tests/test_main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_main.py b/tests/test_main.py index b650870..55b1382 100644 --- a/tests/test_main.py +++ b/tests/test_main.py | |||
@@ -103,7 +103,7 @@ class MainTest(WebMockTestCase): | |||
103 | mock.patch("main.parse_config") as main_parse_config: | 103 | mock.patch("main.parse_config") as main_parse_config: |
104 | with self.subTest(debug=False): | 104 | with self.subTest(debug=False): |
105 | main_parse_args.return_value = self.market_args() | 105 | main_parse_args.return_value = self.market_args() |
106 | main_parse_config.return_value = "pg_config" | 106 | main_parse_config.return_value = ["pg_config", "redis_config"] |
107 | main_fetch_markets.return_value = [(1, {"key": "market_config"}, 3)] | 107 | main_fetch_markets.return_value = [(1, {"key": "market_config"}, 3)] |
108 | m = main.get_user_market("config_path.ini", 1) | 108 | m = main.get_user_market("config_path.ini", 1) |
109 | 109 | ||
@@ -114,7 +114,7 @@ class MainTest(WebMockTestCase): | |||
114 | main_parse_args.reset_mock() | 114 | main_parse_args.reset_mock() |
115 | with self.subTest(debug=True): | 115 | with self.subTest(debug=True): |
116 | main_parse_args.return_value = self.market_args(debug=True) | 116 | main_parse_args.return_value = self.market_args(debug=True) |
117 | main_parse_config.return_value = "pg_config" | 117 | main_parse_config.return_value = ["pg_config", "redis_config"] |
118 | main_fetch_markets.return_value = [(1, {"key": "market_config"}, 3)] | 118 | main_fetch_markets.return_value = [(1, {"key": "market_config"}, 3)] |
119 | m = main.get_user_market("config_path.ini", 1, debug=True) | 119 | m = main.get_user_market("config_path.ini", 1, debug=True) |
120 | 120 | ||