From c1e9e0c9c10391c1ab8b0229d2699a99e639f90b Mon Sep 17 00:00:00 2001 From: NotoriousRebel Date: Thu, 13 Feb 2020 17:19:51 -0500 Subject: [PATCH] removed unncessary tests. --- tests/discovery/githubcode.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/discovery/githubcode.py b/tests/discovery/githubcode.py index da88196c..df8b6d28 100644 --- a/tests/discovery/githubcode.py +++ b/tests/discovery/githubcode.py @@ -84,24 +84,6 @@ async def test_invalid_fragments_from_response(self): test_result = await test_class_instance.fragments_from_response(self.MalformedResponse.response.json()) assert test_result == [] - async def test_handle_response_ok(self): - Core.github_key = MagicMock(return_value="lol") - test_class_instance = githubcode.SearchGithubCode(word="test", limit=500) - test_result = await test_class_instance.handle_response() - assert isinstance(test_result, SuccessResult) - - async def test_handle_response_retry(self): - Core.github_key = MagicMock(return_value="lol") - test_class_instance = githubcode.SearchGithubCode(word="test", limit=500) - test_result = await test_class_instance.handle_response(self.RetryResponse.response.json()) - assert isinstance(test_result, RetryResult) - - async def test_handle_response_fail(self): - Core.github_key = MagicMock(return_value="lol") - test_class_instance = githubcode.SearchGithubCode(word="test", limit=500) - test_result = await test_class_instance.handle_response(self.FailureResponse.response.json()) - assert isinstance(test_result, ErrorResult) - async def test_next_page(self): Core.github_key = MagicMock(return_value="lol") test_class_instance = githubcode.SearchGithubCode(word="test", limit=500)