aboutsummaryrefslogtreecommitdiff
path: root/tests/helper.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-20 20:09:13 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-20 20:16:18 +0200
commit3080f31d1ee74104640dcff451922cd0ae88ee22 (patch)
tree81570ba2eb909b05e7aa4805f5535e47e1df6a11 /tests/helper.py
parent9fe90554ff1c8c7aea9e1e1e210419a845579edd (diff)
downloadTrader-3080f31d1ee74104640dcff451922cd0ae88ee22.tar.gz
Trader-3080f31d1ee74104640dcff451922cd0ae88ee22.tar.zst
Trader-3080f31d1ee74104640dcff451922cd0ae88ee22.zip
Move acceptance tests to common directory
Diffstat (limited to 'tests/helper.py')
-rw-r--r--tests/helper.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/helper.py b/tests/helper.py
index 4548b16..b85bf3a 100644
--- a/tests/helper.py
+++ b/tests/helper.py
@@ -6,9 +6,19 @@ 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__ = ["unittest", "WebMockTestCase", "mock", "D", 9__all__ = ["limits", "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
12class WebMockTestCase(unittest.TestCase): 22class WebMockTestCase(unittest.TestCase):
13 import time 23 import time
14 24