aboutsummaryrefslogtreecommitdiff
path: root/tests/helper.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-07 23:23:10 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-08 00:52:51 +0200
commit1d72880c097ea8259ce9cc63cfe55e6cc7516bd2 (patch)
tree44d7f9089468f35277bb8d0257da0f3a3bb88448 /tests/helper.py
parente7d7c0e5645da35adcbfec9e51deb68f012c422f (diff)
downloadTrader-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.py12
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
6from io import StringIO 6from io import StringIO
7import portfolio, market, main, store 7import 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
12limits = ["acceptance", "unit"]
13for 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
22class WebMockTestCase(unittest.TestCase): 12class WebMockTestCase(unittest.TestCase):
23 import time 13 import time
24 14