Fix Agora tests

This commit is contained in:
2022-02-15 21:30:16 +00:00
parent 5c07112ca7
commit 8782aeaead
4 changed files with 767 additions and 755 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -161,7 +161,6 @@ class TestAgora(TestCase):
to_append = [ad_id, username, temp_price, provider, asset, currency]
if to_append not in expected_return:
expected_return.append(to_append)
# print("expecting", to_append)
self.assertCountEqual(enum_ads_return, expected_return)
self.assertNotEqual(enum_ads_return[0][0], enum_ads_return[1][0])
@@ -187,7 +186,7 @@ class TestAgora(TestCase):
price_xmr = cg_prices["monero"]["usd"]
for ad in deepcopy(enum_ads_return):
price = float(ad[2])
margin = round(price / price_xmr, 4)
margin = round(price / price_xmr, 2)
ad.append(margin)
expected_return.append(ad)