change the status code check to 404

This view now works correctly and returns a 404 instead of an empty table.
This commit is contained in:
Andreas Zweili 2019-09-01 12:08:23 +02:00
parent 8a21e52ab4
commit 37f463361a
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ def test_net_detail_view_not_found(create_admin_user):
client = Client()
client.login(username="novartis-admin", password="password")
response = client.get('/net/100/')
assert response.status_code == 200 and not_in_content(response, net.name)
assert response.status_code == 404
def test_backup_detail_view_not_logged_in():