Fix references to last_online_recent in Agora tests
This commit is contained in:
parent
896318982f
commit
c15492f161
|
@ -80,8 +80,8 @@ class TestAgora(TestCase):
|
||||||
def test_get_all_public_ads(self):
|
def test_get_all_public_ads(self):
|
||||||
# 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
|
||||||
self.agora.last_online_recent = MagicMock()
|
util.last_online_recent = MagicMock()
|
||||||
self.agora.last_online_recent.return_value = True
|
util.last_online_recent.return_value = True
|
||||||
|
|
||||||
# Override get_price
|
# Override get_price
|
||||||
self.agora.cg.get_price = MagicMock()
|
self.agora.cg.get_price = MagicMock()
|
||||||
|
@ -118,9 +118,6 @@ class TestAgora(TestCase):
|
||||||
def test_update_prices(self):
|
def test_update_prices(self):
|
||||||
# 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
|
||||||
self.agora.last_online_recent = MagicMock()
|
|
||||||
self.agora.last_online_recent.return_value = True
|
|
||||||
|
|
||||||
util.last_online_recent = MagicMock()
|
util.last_online_recent = MagicMock()
|
||||||
util.last_online_recent.return_value = True
|
util.last_online_recent.return_value = True
|
||||||
|
|
||||||
|
@ -176,8 +173,8 @@ class TestAgora(TestCase):
|
||||||
def test_lookup_rates(self):
|
def test_lookup_rates(self):
|
||||||
# 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
|
||||||
self.agora.last_online_recent = MagicMock()
|
util.last_online_recent = MagicMock()
|
||||||
self.agora.last_online_recent.return_value = True
|
util.last_online_recent.return_value = True
|
||||||
|
|
||||||
# Override get_price
|
# Override get_price
|
||||||
self.agora.cg.get_price = MagicMock()
|
self.agora.cg.get_price = MagicMock()
|
||||||
|
@ -204,8 +201,8 @@ class TestAgora(TestCase):
|
||||||
"""
|
"""
|
||||||
# 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
|
||||||
self.agora.last_online_recent = MagicMock()
|
util.last_online_recent = MagicMock()
|
||||||
self.agora.last_online_recent.return_value = True
|
util.last_online_recent.return_value = True
|
||||||
|
|
||||||
# Override get_price
|
# Override get_price
|
||||||
self.agora.cg.get_price = MagicMock()
|
self.agora.cg.get_price = MagicMock()
|
||||||
|
|
Loading…
Reference in New Issue