Fix Agora tests

This commit is contained in:
Mark Veidemanis 2022-03-04 22:16:18 +00:00
parent 2266300064
commit 053293dfee
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ from agora import Agora
from markets import Markets
from money import Money
import util
import settings
class TestAgora(TestCase):
@ -120,6 +121,9 @@ class TestAgora(TestCase):
self.assertNotEqual(asset3, asset4)
def test_update_prices(self):
# Override the providers
settings.settings.Agora.ProviderList = '["REVOLUT", "NATIONAL_BANK"]'
# Override enum_public_ads
self.agora.agora._api_call = self.mock_enum_public_ads_api_call
util.last_online_recent = MagicMock()