aboutsummaryrefslogtreecommitdiff
path: root/tests/helper.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-03-22 16:11:32 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-03-22 16:11:32 +0100
commit78ded184e2c7cbb0bf62fc5becd4e4dd3dc59cc0 (patch)
tree5eafe7f8fbc1a707f238f1b73ccae0172be24010 /tests/helper.py
parent34865e65933da0db778e171fc787eca114ec562d (diff)
parent8bbca32edc344c7ee2f5ea5db5448a4c4ff79684 (diff)
downloadTrader-master.tar.gz
Trader-master.tar.zst
Trader-master.zip
Merge branch 'dev'HEADmaster
Diffstat (limited to 'tests/helper.py')
-rw-r--r--tests/helper.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/helper.py b/tests/helper.py
index a2f8a22..930d04a 100644
--- a/tests/helper.py
+++ b/tests/helper.py
@@ -5,9 +5,10 @@ from unittest import mock
5import requests_mock 5import requests_mock
6from io import StringIO 6from io import StringIO
7import portfolio, market, main, store, dbs 7import portfolio, market, main, store, dbs
8import datetime
8 9
9__all__ = ["limits", "unittest", "WebMockTestCase", "mock", "D", 10__all__ = ["limits", "unittest", "WebMockTestCase", "mock", "D",
10 "StringIO"] 11 "StringIO", "tz"]
11 12
12limits = ["acceptance", "unit"] 13limits = ["acceptance", "unit"]
13for test_type in limits: 14for test_type in limits:
@@ -19,6 +20,9 @@ for test_type in limits:
19 limits = [test_type] 20 limits = [test_type]
20 break 21 break
21 22
23def tz(hours):
24 return datetime.timezone(datetime.timedelta(hours=hours))
25
22class WebMockTestCase(unittest.TestCase): 26class WebMockTestCase(unittest.TestCase):
23 import time 27 import time
24 28