summaryrefslogtreecommitdiffstats
path: root/core/TESTS
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-07-05 00:28:48 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2024-07-05 00:28:48 +0300
commitf36f10d90323e1f3598a18eda2e6cddb0c2ba159 (patch)
treea1c75e61906831bcafeae090aa2440f424887bf1 /core/TESTS
parent69ce1d91f3ef3ffc9baea5cbd926ff005fb20e97 (diff)
downloadtroggle-f36f10d90323e1f3598a18eda2e6cddb0c2ba159.tar.gz
troggle-f36f10d90323e1f3598a18eda2e6cddb0c2ba159.tar.bz2
troggle-f36f10d90323e1f3598a18eda2e6cddb0c2ba159.zip
debug op
Diffstat (limited to 'core/TESTS')
-rw-r--r--core/TESTS/test_logins.py4
1 files 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):