mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-18 21:47:21 +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 + "'")
|
self.assertIsNone(phmatch, "Unexpectedly found unexpected text: '" + ph + "'")
|
||||||
|
|
||||||
def test_page_ss(self):
|
def test_page_ss(self):
|
||||||
response = self.client.get("/survey_scans/")
|
response = self.client.get("/survey_scans")
|
||||||
self.assertEqual(response.status_code, HTTPStatus.OK)
|
self.assertEqual(response.status_code, HTTPStatus.OK)
|
||||||
|
|
||||||
ph = r"All Survey scans folders "
|
ph = r"All Survey scans folders "
|
||||||
@@ -427,7 +427,7 @@ class PageTests(TestCase):
|
|||||||
|
|
||||||
def test_page_survey_scans_empty(self):
|
def test_page_survey_scans_empty(self):
|
||||||
# this gets an empty page as the database has not been loaded
|
# 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)
|
self.assertEqual(response.status_code, HTTPStatus.OK)
|
||||||
content = response.content.decode()
|
content = response.content.decode()
|
||||||
ph = r"contains the scanned original in-cave survey notes and sketches"
|
ph = r"contains the scanned original in-cave survey notes and sketches"
|
||||||
|
|||||||
Reference in New Issue
Block a user