2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 14:09:31 +00:00

sync tests to code

This commit is contained in:
2026-01-31 20:02:21 +00:00
parent c4e2ac66b5
commit c3eecdb880
4 changed files with 203 additions and 3 deletions

View File

@@ -228,7 +228,7 @@ class FixturePageTests(TestCase):
content = response.content.decode()
ph = r"Seetrichter"
ph_alt = r"1623-284"
# phmatch = re.search(ph, content) or re.search(ph_alt, content)
phmatch = re.search(ph, content) or re.search(ph_alt, content)
# with open('_cave_caves284.html', 'w') as f:
# f.write(content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "' or '" + ph_alt + "'")

View File

@@ -151,7 +151,7 @@ class SimpleTest(SimpleTestCase):
from troggle.core.views.other import controlpanel
from troggle.core.views.prospect import prospecting, prospecting_image
from troggle.core.views.statistics import dataissues, pathsreport, stats
from troggle.core.views.survex import survexcavesingle, survexcaveslist, svx
from troggle.core.views.survex import survexcaveslist, svx
class ImportTest(TestCase):
@classmethod

View File

@@ -304,7 +304,7 @@ class PageTests(TestCase):
def test_page_folk(self):
# This page is separately generated, so it has the full data content
response = self.client.get("/folk/index.htm")
response = self.client.get("/folk/index.html")
content = response.content.decode()
self.assertEqual(response.status_code, HTTPStatus.OK)
for ph in [