Skip to content

Commit

Permalink
Remove test_get_pkg_index_raw_exception
Browse files Browse the repository at this point in the history
Raising this exception was removed in 536787d and the test now fails
100% of the time.
  • Loading branch information
agraul authored and juliogonzalez committed Jun 22, 2020
1 parent 80b7114 commit b42a7f9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions backend/common/test/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b42a7f9

Please sign in to comment.