Fix Agora tests
This commit is contained in:
parent
2266300064
commit
053293dfee
|
@ -8,6 +8,7 @@ from agora import Agora
|
||||||
from markets import Markets
|
from markets import Markets
|
||||||
from money import Money
|
from money import Money
|
||||||
import util
|
import util
|
||||||
|
import settings
|
||||||
|
|
||||||
|
|
||||||
class TestAgora(TestCase):
|
class TestAgora(TestCase):
|
||||||
|
@ -120,6 +121,9 @@ class TestAgora(TestCase):
|
||||||
self.assertNotEqual(asset3, asset4)
|
self.assertNotEqual(asset3, asset4)
|
||||||
|
|
||||||
def test_update_prices(self):
|
def test_update_prices(self):
|
||||||
|
# Override the providers
|
||||||
|
settings.settings.Agora.ProviderList = '["REVOLUT", "NATIONAL_BANK"]'
|
||||||
|
|
||||||
# Override enum_public_ads
|
# Override enum_public_ads
|
||||||
self.agora.agora._api_call = self.mock_enum_public_ads_api_call
|
self.agora.agora._api_call = self.mock_enum_public_ads_api_call
|
||||||
util.last_online_recent = MagicMock()
|
util.last_online_recent = MagicMock()
|
||||||
|
|
Loading…
Reference in New Issue