Skip to content

Commit

Permalink
Add assertion statements to upload tests
Browse files Browse the repository at this point in the history
  • Loading branch information
naglepuff committed Aug 16, 2021
1 parent ced2ecd commit 3b0b8fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions multinet/api/tests/test_upload_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def test_upload_rest_retrieve(
'status': upload.status,
'workspace': workspace_re(workspace),
}
else:
assert r.data == {'detail': 'Not found.'}


@pytest.mark.django_db
Expand Down Expand Up @@ -116,6 +118,8 @@ def test_upload_rest_list(
assert r_json['count'] == len(upload_ids)
for upload in r_json['results']:
assert upload['id'] in upload_ids
else:
assert r.data == {'detail': 'Not found.'}


@pytest.mark.django_db
Expand Down

0 comments on commit 3b0b8fc

Please sign in to comment.