aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-12-19 11:33:37 -0800
committerGravatar MarkKoz <[email protected]>2020-12-19 11:33:37 -0800
commit52ee0dab1e59089a7acc9f08078dee0df3fa40e6 (patch)
treebabd8ea4fc571fa1dff2e7a26cff7f2e6007dab8
parentAPIClient: create the session directly in __init__ (diff)
Remove obsolete test cases
Forgot to remove these when removing `loop_is_running` in a previous commit.
-rw-r--r--tests/bot/test_api.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/bot/test_api.py b/tests/bot/test_api.py
index 99e942813..76bcb481d 100644
--- a/tests/bot/test_api.py
+++ b/tests/bot/test_api.py
@@ -13,14 +13,6 @@ class APIClientTests(unittest.IsolatedAsyncioTestCase):
cls.error_api_response = MagicMock()
cls.error_api_response.status = 999
- def test_loop_is_not_running_by_default(self):
- """The event loop should not be running by default."""
- self.assertFalse(api.loop_is_running())
-
- async def test_loop_is_running_in_async_context(self):
- """The event loop should be running in an async context."""
- self.assertTrue(api.loop_is_running())
-
def test_response_code_error_default_initialization(self):
"""Test the default initialization of `ResponseCodeError` without `text` or `json`"""
error = api.ResponseCodeError(response=self.error_api_response)