X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git;a=blobdiff_plain;f=tests%2Fhelper.py;h=fcb0e9dc3575d9c1426d016214fcc5183bde1e83;hp=4cf1b41d7d1c5426090ba0938bd19f902d384fff;hb=1d72880c097ea8259ce9cc63cfe55e6cc7516bd2;hpb=e7d7c0e5645da35adcbfec9e51deb68f012c422f 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 from io import StringIO import portfolio, market, main, store -__all__ = ["limits", "unittest", "WebMockTestCase", "mock", "D", +__all__ = ["unittest", "WebMockTestCase", "mock", "D", "StringIO"] -limits = ["acceptance", "unit"] -for test_type in limits: - if "--no{}".format(test_type) in sys.argv: - sys.argv.remove("--no{}".format(test_type)) - limits.remove(test_type) - if "--only{}".format(test_type) in sys.argv: - sys.argv.remove("--only{}".format(test_type)) - limits = [test_type] - break - class WebMockTestCase(unittest.TestCase): import time