Fix Agora tests
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user