From f70343bb63cce31307915ea4229aa85755a218a7 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 26 Mar 2020 17:50:31 -0400 Subject: [PATCH] delete live bittrex test --- .../other/test_exchange_rate_manager.py | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 tests/integration/other/test_exchange_rate_manager.py diff --git a/tests/integration/other/test_exchange_rate_manager.py b/tests/integration/other/test_exchange_rate_manager.py deleted file mode 100644 index 513b636da..000000000 --- a/tests/integration/other/test_exchange_rate_manager.py +++ /dev/null @@ -1,22 +0,0 @@ -from decimal import Decimal -from lbry.testcase import AsyncioTestCase -from lbry.extras.daemon.exchange_rate_manager import ExchangeRate, ExchangeRateManager, FEEDS - - -class TestExchangeRateManager(AsyncioTestCase): - - async def test_exchange_rate_manager(self): - # TODO: re-enable cryptonator.com - manager = ExchangeRateManager(FEEDS) - manager.start() - self.addCleanup(manager.stop) - for feed in manager.market_feeds: - self.assertFalse(feed.is_online) - self.assertIsNone(feed.rate) - await manager.wait() - for feed in manager.market_feeds: - self.assertTrue(feed.is_online) - self.assertIsInstance(feed.rate, ExchangeRate) - lbc = manager.convert_currency('USD', 'LBC', Decimal('0.01')) - self.assertGreaterEqual(lbc, 0.1) - self.assertLessEqual(lbc, 10.0)