From 053293dfee83daed95250da78bc2547c44296a27 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 4 Mar 2022 22:16:18 +0000 Subject: [PATCH] Fix Agora tests --- handler/tests/test_agora.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handler/tests/test_agora.py b/handler/tests/test_agora.py index ed170f2..9f61eb7 100644 --- a/handler/tests/test_agora.py +++ b/handler/tests/test_agora.py @@ -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()