diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-07 23:23:10 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-08 00:52:51 +0200 |
commit | 1d72880c097ea8259ce9cc63cfe55e6cc7516bd2 (patch) | |
tree | 44d7f9089468f35277bb8d0257da0f3a3bb88448 /tests/helper.py | |
parent | e7d7c0e5645da35adcbfec9e51deb68f012c422f (diff) | |
download | Trader-1d72880c097ea8259ce9cc63cfe55e6cc7516bd2.tar.gz Trader-1d72880c097ea8259ce9cc63cfe55e6cc7516bd2.tar.zst Trader-1d72880c097ea8259ce9cc63cfe55e6cc7516bd2.zip |
Add acceptance tests
Fixes https://git.immae.eu/mantisbt/view.php?id=42
(new scenario files still need to be added to improve coverage)
Diffstat (limited to 'tests/helper.py')
-rw-r--r-- | tests/helper.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/helper.py b/tests/helper.py index 4cf1b41..fcb0e9d 100644 --- a/tests/helper.py +++ b/tests/helper.py | |||
@@ -6,19 +6,9 @@ import requests_mock | |||
6 | from io import StringIO | 6 | from io import StringIO |
7 | import portfolio, market, main, store | 7 | import portfolio, market, main, store |
8 | 8 | ||
9 | __all__ = ["limits", "unittest", "WebMockTestCase", "mock", "D", | 9 | __all__ = ["unittest", "WebMockTestCase", "mock", "D", |
10 | "StringIO"] | 10 | "StringIO"] |
11 | 11 | ||
12 | limits = ["acceptance", "unit"] | ||
13 | for test_type in limits: | ||
14 | if "--no{}".format(test_type) in sys.argv: | ||
15 | sys.argv.remove("--no{}".format(test_type)) | ||
16 | limits.remove(test_type) | ||
17 | if "--only{}".format(test_type) in sys.argv: | ||
18 | sys.argv.remove("--only{}".format(test_type)) | ||
19 | limits = [test_type] | ||
20 | break | ||
21 | |||
22 | class WebMockTestCase(unittest.TestCase): | 12 | class WebMockTestCase(unittest.TestCase): |
23 | import time | 13 | import time |
24 | 14 | ||