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:
parent
8a21e52ab4
commit
37f463361a
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue