summaryrefslogtreecommitdiffstats
path: root/core/TESTS/tests_caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-30 00:24:36 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-30 00:24:36 +0100
commit03a5f5989e74ba50ff63ba599f98cd36dc0fa5d0 (patch)
tree84e8895c0caca3b55e65f12737a2c8d14435fed6 /core/TESTS/tests_caves.py
parente5cf1b5289d908133bcfbc7054b0eda1e658dbfd (diff)
downloadtroggle-03a5f5989e74ba50ff63ba599f98cd36dc0fa5d0.tar.gz
troggle-03a5f5989e74ba50ff63ba599f98cd36dc0fa5d0.tar.bz2
troggle-03a5f5989e74ba50ff63ba599f98cd36dc0fa5d0.zip
chipping away bug in personexpedition, remove role
Diffstat (limited to 'core/TESTS/tests_caves.py')
-rw-r--r--core/TESTS/tests_caves.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/TESTS/tests_caves.py b/core/TESTS/tests_caves.py
index 0ff0f12..8a08c71 100644
--- a/core/TESTS/tests_caves.py
+++ b/core/TESTS/tests_caves.py
@@ -58,6 +58,19 @@ class FixtureTests(TestCase):
self.assertIsNotNone(phmatch, "In fixture-loaded cave, failed to find expected text: '" + ph +"'")
+ def test_page_personexpedition(self):
+ response = self.client.get('/personexpedition/MichaelSargent/2019')
+ content = response.content.decode()
+ # with open('testresponse.html','w') as tr:
+ # tr.writelines(content)
+ self.assertEqual(response.status_code, 200)
+ for ph in [ r'Michael Sargent',
+ r'Table of all trips and surveys aligned by date' ]:
+ phmatch = re.search(ph, content)
+ self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
+ # Need to add a fixture so that this actually has a logbook entry and a trip/svx in it.
+
+
class FixturePageTests(TestCase):
'''Currently nothing that runs troggle works - all do 404. Must be something in a template rendering crash?
ordinary pages are OK, and expopages and expofiles are OK, even though they come through troggle.