mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 23:57:11 +00:00
fix tests to match cleaned-up urls.py
This commit is contained in:
@@ -199,7 +199,7 @@ class PageTests(TestCase):
|
||||
self.assertIsNone(phmatch, "Unexpectedly found unexpected text: '" + ph + "'")
|
||||
|
||||
def test_page_ss(self):
|
||||
response = self.client.get("/survey_scans/")
|
||||
response = self.client.get("/survey_scans")
|
||||
self.assertEqual(response.status_code, HTTPStatus.OK)
|
||||
|
||||
ph = r"All Survey scans folders "
|
||||
@@ -427,7 +427,7 @@ class PageTests(TestCase):
|
||||
|
||||
def test_page_survey_scans_empty(self):
|
||||
# this gets an empty page as the database has not been loaded
|
||||
response = self.client.get("/survey_scans/")
|
||||
response = self.client.get("/survey_scans")
|
||||
self.assertEqual(response.status_code, HTTPStatus.OK)
|
||||
content = response.content.decode()
|
||||
ph = r"contains the scanned original in-cave survey notes and sketches"
|
||||
|
||||
Reference in New Issue
Block a user