From 0f4db82b029b5368e4144786218bac26faf96e29 Mon Sep 17 00:00:00 2001 From: Marie PUPO JEAMMET Date: Tue, 17 Dec 2024 13:48:18 +0100 Subject: [PATCH 1/4] Split test_api_users.py into users/test_api_users_list.py --- .../tests/{test_api_users.py => users/test_api_users_list.py} | 1 + 1 file changed, 1 insertion(+) rename src/backend/core/tests/{test_api_users.py => users/test_api_users_list.py} (99%) diff --git a/src/backend/core/tests/test_api_users.py b/src/backend/core/tests/users/test_api_users_list.py similarity index 99% rename from src/backend/core/tests/test_api_users.py rename to src/backend/core/tests/users/test_api_users_list.py index ba64a1c35..77cc8480e 100644 --- a/src/backend/core/tests/test_api_users.py +++ b/src/backend/core/tests/users/test_api_users_list.py @@ -937,3 +937,4 @@ def test_api_users_delete_self(): assert response.status_code == HTTP_405_METHOD_NOT_ALLOWED assert models.User.objects.count() == 1 + From fcc63f9b828a9dd9ee9c4fe63c19a4faebfaa178 Mon Sep 17 00:00:00 2001 From: Marie PUPO JEAMMET Date: Tue, 17 Dec 2024 13:48:18 +0100 Subject: [PATCH 2/4] Split test_api_users.py into users/test_api_users_update.py --- .../tests/{test_api_users.py => users/test_api_users_update.py} | 1 + 1 file changed, 1 insertion(+) rename src/backend/core/tests/{test_api_users.py => users/test_api_users_update.py} (99%) diff --git a/src/backend/core/tests/test_api_users.py b/src/backend/core/tests/users/test_api_users_update.py similarity index 99% rename from src/backend/core/tests/test_api_users.py rename to src/backend/core/tests/users/test_api_users_update.py index ba64a1c35..77cc8480e 100644 --- a/src/backend/core/tests/test_api_users.py +++ b/src/backend/core/tests/users/test_api_users_update.py @@ -937,3 +937,4 @@ def test_api_users_delete_self(): assert response.status_code == HTTP_405_METHOD_NOT_ALLOWED assert models.User.objects.count() == 1 + From 4a763396e2078b2abd164f6ea7a4097ce300bbee Mon Sep 17 00:00:00 2001 From: Marie PUPO JEAMMET Date: Tue, 17 Dec 2024 13:48:18 +0100 Subject: [PATCH 3/4] Split test_api_users.py into users/test_api_users_delete.py --- .../tests/{test_api_users.py => users/test_api_users_delete.py} | 1 + 1 file changed, 1 insertion(+) rename src/backend/core/tests/{test_api_users.py => users/test_api_users_delete.py} (99%) diff --git a/src/backend/core/tests/test_api_users.py b/src/backend/core/tests/users/test_api_users_delete.py similarity index 99% rename from src/backend/core/tests/test_api_users.py rename to src/backend/core/tests/users/test_api_users_delete.py index ba64a1c35..77cc8480e 100644 --- a/src/backend/core/tests/test_api_users.py +++ b/src/backend/core/tests/users/test_api_users_delete.py @@ -937,3 +937,4 @@ def test_api_users_delete_self(): assert response.status_code == HTTP_405_METHOD_NOT_ALLOWED assert models.User.objects.count() == 1 + From 6061a65e4454319ec7c1373e241c7efac3fb2994 Mon Sep 17 00:00:00 2001 From: Marie PUPO JEAMMET Date: Tue, 17 Dec 2024 13:48:18 +0100 Subject: [PATCH 4/4] Split test_api_users.py into users/test_api_users_create.py --- .../tests/{test_api_users.py => users/test_api_users_create.py} | 1 + 1 file changed, 1 insertion(+) rename src/backend/core/tests/{test_api_users.py => users/test_api_users_create.py} (99%) diff --git a/src/backend/core/tests/test_api_users.py b/src/backend/core/tests/users/test_api_users_create.py similarity index 99% rename from src/backend/core/tests/test_api_users.py rename to src/backend/core/tests/users/test_api_users_create.py index ba64a1c35..77cc8480e 100644 --- a/src/backend/core/tests/test_api_users.py +++ b/src/backend/core/tests/users/test_api_users_create.py @@ -937,3 +937,4 @@ def test_api_users_delete_self(): assert response.status_code == HTTP_405_METHOD_NOT_ALLOWED assert models.User.objects.count() == 1 +