From b1f2b4a6633932e845cfb65295c83c680785f216 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Mon, 28 Aug 2023 10:22:43 -0600 Subject: [PATCH] Sandbox unit test fix attempt --- src/registrar/tests/test_admin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/registrar/tests/test_admin.py b/src/registrar/tests/test_admin.py index 637d86718..ea4eaeb62 100644 --- a/src/registrar/tests/test_admin.py +++ b/src/registrar/tests/test_admin.py @@ -649,6 +649,11 @@ class DomainSessionVariableTest(TestCase): self.admin = DomainAdmin(Domain, None) self.client = Client(HTTP_HOST="localhost:8080") + # Test data seems to linger in the sandbox for tests. + # We delete this here for these tests. + DomainInformation.objects.all().delete() + Domain.objects.all().delete() + def test_session_vars_set_correctly(self): """Checks if session variables are being set correctly"""