Skip to content

Commit

Permalink
Update tests/repositories/test_legacy_repository.py
Browse files Browse the repository at this point in the history
Co-authored-by: Arun Babu Neelicattu <[email protected]>
  • Loading branch information
cereblanco and abn committed Feb 10, 2021
1 parent 6c92d42 commit 4c734f1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/repositories/test_legacy_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,8 @@ def test_get_200_returns_page(http):
assert repo._get("/foo")


def test_get_404_returns_none(http):
repo = MockHttpRepository({"/foo": 404}, http)

assert repo._get("/foo") is None


def test_get_4xx_and_5xx_raises(http):
endpoints = {"/{}".format(code): code for code in {401, 403, 500}}
def test_get_40x_and_returns_none(http):
endpoints = {"/{}".format(code): code for code in {401, 403, 404}}
repo = MockHttpRepository(endpoints, http)

for endpoint in endpoints:
Expand Down

0 comments on commit 4c734f1

Please sign in to comment.