X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fhelper.py;h=a2f8a2243c5e6966a96ccda794741291970d201a;hb=8e648fd5b8d10c8f68b30ee0c30f02d5b60a1b77;hp=b85bf3ac58d8967edf0c7d691e3de2870b3f1374;hpb=ad64ff17e3aa7d7af40a3724a8cd9f19ca045422;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git diff --git a/tests/helper.py b/tests/helper.py index b85bf3a..a2f8a22 100644 --- a/tests/helper.py +++ b/tests/helper.py @@ -4,7 +4,7 @@ from decimal import Decimal as D from unittest import mock import requests_mock from io import StringIO -import portfolio, market, main, store +import portfolio, market, main, store, dbs __all__ = ["limits", "unittest", "WebMockTestCase", "mock", "D", "StringIO"] @@ -45,9 +45,12 @@ class WebMockTestCase(unittest.TestCase): worker_tag="", worker_notify=None, worker_started=False, + poll_started_at=None, callback=None), mock.patch.multiple(portfolio.Computation, computations=portfolio.Computation.computations), + mock.patch.multiple(dbs, + redis=None, psql=None) ] for patcher in self.patchers: patcher.start()