From 8401669a37e8a8f64861158f4d950f0b8d4d11a0 Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Wed, 14 Feb 2024 16:11:24 -0500 Subject: [PATCH] fix: Fixed fixture name --- terraso_backend/tests/conftest.py | 2 +- terraso_backend/tests/shared_data/test_views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/terraso_backend/tests/conftest.py b/terraso_backend/tests/conftest.py index 38cadf1d5..9b5cca3b6 100644 --- a/terraso_backend/tests/conftest.py +++ b/terraso_backend/tests/conftest.py @@ -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() diff --git a/terraso_backend/tests/shared_data/test_views.py b/terraso_backend/tests/shared_data/test_views.py index fabb21c1a..54d9413fe 100644 --- a/terraso_backend/tests/shared_data/test_views.py +++ b/terraso_backend/tests/shared_data/test_views.py @@ -169,7 +169,7 @@ 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 @@ -177,7 +177,7 @@ def test_download_data_entry_file_shared_all( "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