From b42a7f981c524a586a32a7deedbdd0f612121f39 Mon Sep 17 00:00:00 2001 From: Alexander Graul Date: Mon, 8 Jun 2020 16:23:38 +0200 Subject: [PATCH] Remove test_get_pkg_index_raw_exception Raising this exception was removed in 536787d and the test now fails 100% of the time. --- backend/common/test/test_repo.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/backend/common/test/test_repo.py b/backend/common/test/test_repo.py index abd1122c08a2..ae0c434396db 100644 --- a/backend/common/test/test_repo.py +++ b/backend/common/test/test_repo.py @@ -315,19 +315,6 @@ def test_decompress_pkg_index_gz_failure(self): assert zdcmp.called assert "hot" in str(exc.value) - @patch("spacewalk.common.repo.requests.get", MagicMock( - return_value=FakeRequests().conf(status_code=http.HTTPStatus.NOT_FOUND, content=b""))) - def test_get_pkg_index_raw_exception(self): - """ - Test getting package index file exception handling - - :return: - """ - with pytest.raises(GeneralRepoException) as exc: - DpkgRepo("http://dummy/url").get_pkg_index_raw() - - assert "No variants of package index has been found on http://dummy/url repo" == str(exc.value) - def test_append_index_file_to_url(self): """ Test append index files to the given url.