From f36f10d90323e1f3598a18eda2e6cddb0c2ba159 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 5 Jul 2024 00:28:48 +0300 Subject: [PATCH] debug op --- core/TESTS/test_logins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/TESTS/test_logins.py b/core/TESTS/test_logins.py index 3954dba..83a92ec 100644 --- a/core/TESTS/test_logins.py +++ b/core/TESTS/test_logins.py @@ -255,10 +255,9 @@ class PostTests(TestCase): response = self.client.post("/photoupload/", data={"photographer": "GussieFinkNottle"}) content = response.content.decode() self.assertEqual(response.status_code, HTTPStatus.OK) - self.assertEqual(response.status_code, HTTPStatus.OK) # with open('_test_response.html', 'w') as f: # f.write(content) - for ph in [r"/GussieFinkNottle/", r"Create new Photographer folder"]: + for ph in [r"Create new Photographer folder", r"/GussieFinkNottle/"]: phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'") @@ -266,6 +265,7 @@ class PostTests(TestCase): # added each time it is run. The name of the uploaded file is only available within the code where it happens remove_dir = pathlib.Path(settings.PHOTOS_ROOT, current_year) / "GussieFinkNottle" if remove_dir.is_dir(): + print(f"{remove_dir} was created, now removing it.") remove_dir.rmdir() def test_dwg_upload_txt(self):