diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-08-04 20:12:51 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-08-04 20:12:51 +0200 |
commit | b46ced3defd7bad269c252c9b458b86e2c5e31eb (patch) | |
tree | 999ec8a712c72887befb186c22fbb646149704e4 /tests/test_market.py | |
parent | f0001495538945af15ae0c28a07e4de4cc18cbf1 (diff) | |
parent | ef8fa5e5454a17c49fe14f6a2c1cffa9cd985bdb (diff) | |
download | Trader-b46ced3defd7bad269c252c9b458b86e2c5e31eb.tar.gz Trader-b46ced3defd7bad269c252c9b458b86e2c5e31eb.tar.zst Trader-b46ced3defd7bad269c252c9b458b86e2c5e31eb.zip |
Merge branch 'dev'v1.10.0
Diffstat (limited to 'tests/test_market.py')
-rw-r--r-- | tests/test_market.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_market.py b/tests/test_market.py index c029686..aeb9f8e 100644 --- a/tests/test_market.py +++ b/tests/test_market.py | |||
@@ -1126,12 +1126,13 @@ class ProcessorTest(WebMockTestCase): | |||
1126 | method_mock = mock.Mock() | 1126 | method_mock = mock.Mock() |
1127 | method_arguments.return_value = [ | 1127 | method_arguments.return_value = [ |
1128 | method_mock, | 1128 | method_mock, |
1129 | ["foo2", "foo"] | 1129 | ["foo2", "foo", "foo3"] |
1130 | ] | 1130 | ] |
1131 | self.m.options = { "foo3": "coucou"} | ||
1131 | method, args = processor.parse_args("action", {"foo": "bar", "foo2": "bar"}, {"foo": "bar2", "bla": "bla"}) | 1132 | method, args = processor.parse_args("action", {"foo": "bar", "foo2": "bar"}, {"foo": "bar2", "bla": "bla"}) |
1132 | 1133 | ||
1133 | self.assertEqual(method_mock, method) | 1134 | self.assertEqual(method_mock, method) |
1134 | self.assertEqual({"foo": "bar2", "foo2": "bar"}, args) | 1135 | self.assertEqual({"foo": "bar2", "foo2": "bar", "foo3": "coucou"}, args) |
1135 | 1136 | ||
1136 | with mock.patch.object(processor, "method_arguments") as method_arguments: | 1137 | with mock.patch.object(processor, "method_arguments") as method_arguments: |
1137 | method_mock = mock.Mock() | 1138 | method_mock = mock.Mock() |