From 76e4b08367aa0cde78626251ed2d89f9583c3663 Mon Sep 17 00:00:00 2001
From: Brandon Rodriguez <brodriguez8774@gmail.com>
Date: Sat, 15 Jul 2023 07:04:29 -0400
Subject: [PATCH] Update LiveServer class to be labeled as a mixin

---
 .../live_server_mixin.py}                                   | 6 +++---
 .../test_cases/channels_live_server_test_case.py            | 5 ++---
 .../test_cases/live_server_test_case.py                     | 5 ++---
 3 files changed, 7 insertions(+), 9 deletions(-)
 rename django_expanded_test_cases/{test_cases/universal_live_server_test_case.py => mixins/live_server_mixin.py} (99%)

diff --git a/django_expanded_test_cases/test_cases/universal_live_server_test_case.py b/django_expanded_test_cases/mixins/live_server_mixin.py
similarity index 99%
rename from django_expanded_test_cases/test_cases/universal_live_server_test_case.py
rename to django_expanded_test_cases/mixins/live_server_mixin.py
index a1a9ce9..6703988 100644
--- a/django_expanded_test_cases/test_cases/universal_live_server_test_case.py
+++ b/django_expanded_test_cases/mixins/live_server_mixin.py
@@ -1,5 +1,5 @@
 """
-Testing logic for live server instances, such as through selenium.
+Universal mixin logic for live server instances, such as through selenium.
 Useful for testing things like JavaScript logic.
 
 Tends to take longer to test. So consider using IntegrationTestCase instead, when possible.
@@ -21,7 +21,7 @@ from django_expanded_test_cases.constants import (
 from django_expanded_test_cases.mixins.response_mixin import ResponseTestCaseMixin
 
 
-class UniversalLiveServerTestCaseMixin(ResponseTestCaseMixin):
+class LiveServerMixin(ResponseTestCaseMixin):
     """Universal logic for all selenium LiveServer test cases."""
 
     # region Utility Functions
@@ -507,5 +507,5 @@ class UniversalLiveServerTestCaseMixin(ResponseTestCaseMixin):
 
 # Define acceptable imports on file.
 __all__ = [
-    'UniversalLiveServerTestCaseMixin',
+    'LiveServerMixin',
 ]
diff --git a/django_expanded_test_cases/test_cases/channels_live_server_test_case.py b/django_expanded_test_cases/test_cases/channels_live_server_test_case.py
index 8962142..7ac96d4 100644
--- a/django_expanded_test_cases/test_cases/channels_live_server_test_case.py
+++ b/django_expanded_test_cases/test_cases/channels_live_server_test_case.py
@@ -6,7 +6,6 @@ Tends to take longer to test. So consider using IntegrationTestCase instead, whe
 """
 
 # System Imports.
-import time
 
 # Third-Party Imports.
 from selenium import webdriver
@@ -16,10 +15,10 @@ from channels.testing import ChannelsLiveServerTestCase as DjangoChannelsLiveSer
 from django.conf import settings
 
 # Internal Imports.
-from .universal_live_server_test_case import UniversalLiveServerTestCaseMixin
+from django_expanded_test_cases.mixins.live_server_mixin import LiveServerMixin
 
 
-class ChannelsLiveServerTestCase(DjangoChannelsLiveServerTestCase, UniversalLiveServerTestCaseMixin):
+class ChannelsLiveServerTestCase(DjangoChannelsLiveServerTestCase, LiveServerMixin):
     """Uses DjangoChannels package to test functionality through selenium. Simulates web browser navigation."""
 
     @classmethod
diff --git a/django_expanded_test_cases/test_cases/live_server_test_case.py b/django_expanded_test_cases/test_cases/live_server_test_case.py
index c2c3fc9..53ae27d 100644
--- a/django_expanded_test_cases/test_cases/live_server_test_case.py
+++ b/django_expanded_test_cases/test_cases/live_server_test_case.py
@@ -6,7 +6,6 @@ Tends to take longer to test. So consider using IntegrationTestCase instead, whe
 """
 
 # System Imports.
-import time
 
 # Third-Party Imports.
 from django.test import LiveServerTestCase as DjangoLiveServerTestCase
@@ -16,10 +15,10 @@ from selenium.webdriver.firefox.service import Service as FireFoxService
 from django.conf import settings
 
 # Internal Imports.
-from .universal_live_server_test_case import UniversalLiveServerTestCaseMixin
+from django_expanded_test_cases.mixins.live_server_mixin import LiveServerMixin
 
 
-class LiveServerTestCase(DjangoLiveServerTestCase, UniversalLiveServerTestCaseMixin):
+class LiveServerTestCase(DjangoLiveServerTestCase, LiveServerMixin):
     """Uses Django package to test functionality through selenium. Simulates web browser navigation."""
 
     @classmethod
-- 
GitLab