From 1af79cc0194472ec056a5345e6382ca43e57f106 Mon Sep 17 00:00:00 2001 From: poduck Date: Sun, 7 Dec 2025 18:31:00 -0500 Subject: [PATCH] refactor: Reorganize tests into tests/ directories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow cookiecutter-django convention by placing tests in dedicated tests/ directories within each app instead of single tests.py files. Changes: - Created tests/ directories with __init__.py for all 13 apps - Moved analytics/tests.py → analytics/tests/test_views.py - Moved schedule/test_export.py → schedule/tests/test_export.py - Moved platform/api/tests_token_security.py → platform/api/tests/test_token_security.py - Deleted empty placeholder tests.py files All apps now have a tests/ directory ready for proper test organization. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- smoothschedule/smoothschedule/commerce/payments/tests.py | 3 --- .../smoothschedule/commerce/payments/tests/__init__.py | 0 smoothschedule/smoothschedule/commerce/tickets/tests.py | 3 --- .../smoothschedule/commerce/tickets/tests/__init__.py | 0 .../smoothschedule/communication/credits/tests/__init__.py | 0 smoothschedule/smoothschedule/communication/messaging/tests.py | 3 --- .../smoothschedule/communication/messaging/tests/__init__.py | 0 .../smoothschedule/communication/mobile/tests/__init__.py | 0 .../smoothschedule/communication/notifications/tests.py | 3 --- .../communication/notifications/tests/__init__.py | 0 smoothschedule/smoothschedule/identity/core/tests/__init__.py | 0 smoothschedule/smoothschedule/platform/admin/tests/__init__.py | 0 smoothschedule/smoothschedule/platform/api/tests/__init__.py | 0 .../{tests_token_security.py => tests/test_token_security.py} | 0 .../smoothschedule/scheduling/analytics/tests/__init__.py | 0 .../scheduling/analytics/{tests.py => tests/test_views.py} | 0 smoothschedule/smoothschedule/scheduling/contracts/tests.py | 3 --- .../smoothschedule/scheduling/contracts/tests/__init__.py | 0 smoothschedule/smoothschedule/scheduling/schedule/tests.py | 3 --- .../scheduling/schedule/{ => tests}/test_export.py | 0 20 files changed, 18 deletions(-) delete mode 100644 smoothschedule/smoothschedule/commerce/payments/tests.py create mode 100644 smoothschedule/smoothschedule/commerce/payments/tests/__init__.py delete mode 100644 smoothschedule/smoothschedule/commerce/tickets/tests.py create mode 100644 smoothschedule/smoothschedule/commerce/tickets/tests/__init__.py create mode 100644 smoothschedule/smoothschedule/communication/credits/tests/__init__.py delete mode 100644 smoothschedule/smoothschedule/communication/messaging/tests.py create mode 100644 smoothschedule/smoothschedule/communication/messaging/tests/__init__.py create mode 100644 smoothschedule/smoothschedule/communication/mobile/tests/__init__.py delete mode 100644 smoothschedule/smoothschedule/communication/notifications/tests.py create mode 100644 smoothschedule/smoothschedule/communication/notifications/tests/__init__.py create mode 100644 smoothschedule/smoothschedule/identity/core/tests/__init__.py create mode 100644 smoothschedule/smoothschedule/platform/admin/tests/__init__.py create mode 100644 smoothschedule/smoothschedule/platform/api/tests/__init__.py rename smoothschedule/smoothschedule/platform/api/{tests_token_security.py => tests/test_token_security.py} (100%) create mode 100644 smoothschedule/smoothschedule/scheduling/analytics/tests/__init__.py rename smoothschedule/smoothschedule/scheduling/analytics/{tests.py => tests/test_views.py} (100%) delete mode 100644 smoothschedule/smoothschedule/scheduling/contracts/tests.py create mode 100644 smoothschedule/smoothschedule/scheduling/contracts/tests/__init__.py delete mode 100644 smoothschedule/smoothschedule/scheduling/schedule/tests.py rename smoothschedule/smoothschedule/scheduling/schedule/{ => tests}/test_export.py (100%) diff --git a/smoothschedule/smoothschedule/commerce/payments/tests.py b/smoothschedule/smoothschedule/commerce/payments/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/smoothschedule/smoothschedule/commerce/payments/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/smoothschedule/smoothschedule/commerce/payments/tests/__init__.py b/smoothschedule/smoothschedule/commerce/payments/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/commerce/tickets/tests.py b/smoothschedule/smoothschedule/commerce/tickets/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/smoothschedule/smoothschedule/commerce/tickets/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/smoothschedule/smoothschedule/commerce/tickets/tests/__init__.py b/smoothschedule/smoothschedule/commerce/tickets/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/communication/credits/tests/__init__.py b/smoothschedule/smoothschedule/communication/credits/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/communication/messaging/tests.py b/smoothschedule/smoothschedule/communication/messaging/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/smoothschedule/smoothschedule/communication/messaging/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/smoothschedule/smoothschedule/communication/messaging/tests/__init__.py b/smoothschedule/smoothschedule/communication/messaging/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/communication/mobile/tests/__init__.py b/smoothschedule/smoothschedule/communication/mobile/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/communication/notifications/tests.py b/smoothschedule/smoothschedule/communication/notifications/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/smoothschedule/smoothschedule/communication/notifications/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/smoothschedule/smoothschedule/communication/notifications/tests/__init__.py b/smoothschedule/smoothschedule/communication/notifications/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/identity/core/tests/__init__.py b/smoothschedule/smoothschedule/identity/core/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/platform/admin/tests/__init__.py b/smoothschedule/smoothschedule/platform/admin/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/platform/api/tests/__init__.py b/smoothschedule/smoothschedule/platform/api/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/platform/api/tests_token_security.py b/smoothschedule/smoothschedule/platform/api/tests/test_token_security.py similarity index 100% rename from smoothschedule/smoothschedule/platform/api/tests_token_security.py rename to smoothschedule/smoothschedule/platform/api/tests/test_token_security.py diff --git a/smoothschedule/smoothschedule/scheduling/analytics/tests/__init__.py b/smoothschedule/smoothschedule/scheduling/analytics/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/scheduling/analytics/tests.py b/smoothschedule/smoothschedule/scheduling/analytics/tests/test_views.py similarity index 100% rename from smoothschedule/smoothschedule/scheduling/analytics/tests.py rename to smoothschedule/smoothschedule/scheduling/analytics/tests/test_views.py diff --git a/smoothschedule/smoothschedule/scheduling/contracts/tests.py b/smoothschedule/smoothschedule/scheduling/contracts/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/smoothschedule/smoothschedule/scheduling/contracts/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/smoothschedule/smoothschedule/scheduling/contracts/tests/__init__.py b/smoothschedule/smoothschedule/scheduling/contracts/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smoothschedule/smoothschedule/scheduling/schedule/tests.py b/smoothschedule/smoothschedule/scheduling/schedule/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/smoothschedule/smoothschedule/scheduling/schedule/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/smoothschedule/smoothschedule/scheduling/schedule/test_export.py b/smoothschedule/smoothschedule/scheduling/schedule/tests/test_export.py similarity index 100% rename from smoothschedule/smoothschedule/scheduling/schedule/test_export.py rename to smoothschedule/smoothschedule/scheduling/schedule/tests/test_export.py