Skip to content

Commit

Permalink
fix: Fixed fixture name
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Feb 14, 2024
1 parent 3e4a7bc commit 8401669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion terraso_backend/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def logged_client(access_token):


@pytest.fixture
def not_logged_client(access_token):
def not_logged_in_client(access_token):
return Client()


Expand Down
4 changes: 2 additions & 2 deletions terraso_backend/tests/shared_data/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ def test_create_data_entry_file_invalid_type(logged_client, upload_url, data_ent

@mock.patch("apps.shared_data.models.data_entries.data_entry_file_storage.url")
def test_download_data_entry_file_shared_all(
get_url_mock, not_logged_client, shared_resource_data_entry_shared_all
get_url_mock, not_logged_in_client, shared_resource_data_entry_shared_all
):
redirect_url = "https://example.org/s3_file.json"
get_url_mock.return_value = redirect_url
url = reverse(
"shared_data:download",
kwargs={"shared_resource_uuid": shared_resource_data_entry_shared_all.share_uuid},
)
response = not_logged_client.get(url)
response = not_logged_in_client.get(url)

assert response.status_code == 302
assert response.url == redirect_url
Expand Down

0 comments on commit 8401669

Please sign in to comment.