From afff362544944190841e2a4db807afe8a37b6596 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 23 Jan 2019 20:57:56 -0500 Subject: [PATCH] component tests need AsyncioTestCase --- tests/unit/components/test_component_manager.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/unit/components/test_component_manager.py b/tests/unit/components/test_component_manager.py index 6ee06e2aa..a46eca339 100644 --- a/tests/unit/components/test_component_manager.py +++ b/tests/unit/components/test_component_manager.py @@ -1,6 +1,5 @@ import asyncio -import unittest -from torba.testcase import AdvanceTimeTestCase +from torba.testcase import AsyncioTestCase, AdvanceTimeTestCase from lbrynet.conf import Config from lbrynet.extras.daemon.ComponentManager import ComponentManager @@ -11,7 +10,7 @@ from lbrynet.extras.daemon.Components import HEADERS_COMPONENT from lbrynet.extras.daemon import Components -class TestComponentManager(unittest.TestCase): +class TestComponentManager(AsyncioTestCase): def setUp(self): self.default_components_sort = [ @@ -50,7 +49,7 @@ class TestComponentManager(unittest.TestCase): self.component_manager.get_component("random_component") -class TestComponentManagerOverrides(unittest.TestCase): +class TestComponentManagerOverrides(AsyncioTestCase): def test_init_with_overrides(self): class FakeWallet: