Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename the test methods to be more explicit.
  • Loading branch information
gusmith committed Nov 12, 2019
commit 13e65da542fac3f6d974a55376c38078e08efed8
4 changes: 2 additions & 2 deletions backend/entityservice/tests/test_project_uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def test_project_single_party_empty_data_upload(
assert r.status_code == 400


def test_project_upload_wrong_authentication(requests, valid_project_params):
def test_project_upload_re_used_authentication(requests, valid_project_params):
"""
Test that a token cannot be re-used to upload clks.
So first, create a project, upload clks with a token (which should work), and then re-upload clks using the same
Expand Down Expand Up @@ -267,7 +267,7 @@ def test_project_upload_wrong_authentication(requests, valid_project_params):
small_file_path, new_project_data['project_id'], token_to_reuse, 1000, expected_status_code=403)


def test_project_upload_fail_then_works(requests, valid_project_params):
def test_project_upload_invalid_clks_then_valid_clks_same_authentication(requests, valid_project_params):
"""
Test that a token can be re-used to upload clks after the upload failed.
So first, create a project, upload clks with a token (which should NOT work with a 400 error),
Expand Down