consistent tests with logbooks junk removal

This commit is contained in:
2023-01-16 19:52:05 +00:00
parent 822965ebe5
commit 1b70ccea3e
4 changed files with 6 additions and 5 deletions

View File

@@ -100,7 +100,7 @@ class SimpleTest(SimpleTestCase):
from troggle.core.views.caves import ent, cavepage
from troggle.core.views.expo import expofiles_redirect, expofilessingle, expopage, editexpopage, mediapage, map, mapfile
from troggle.core.views.logbooks import expedition, personexpedition, Expeditions_tsvListView, Expeditions_jsonListView
from troggle.core.views.logbooks import get_logbook_entries, logbookentry, logbookSearch
from troggle.core.views.logbooks import get_logbook_entries, logbookentry
from troggle.core.views.logbooks import notablepersons, person, get_people
from troggle.core.views.other import controlpanel
from troggle.core.views.prospect import prospecting

View File

@@ -204,7 +204,7 @@ class PageTests(TestCase):
response = self.client.get('/admin/login/')
content = response.content.decode()
self.assertEqual(response.status_code, 200)
ph = r'<h1 id="site-name">Troggle administration</h1>'
ph = r'<h1 id="site-name">Troggle database administration</h1>'
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")

View File

@@ -351,7 +351,7 @@ class ComplexLoginTests(TestCase):
content = response.content.decode()
# with open('admin-op.html', 'w') as f:
# f.write(content)
t = re.search(r'Troggle administration', content)
t = re.search(r'Troggle database administration', content)
self.assertIsNotNone(t, 'Logged in as \'' + u.username + '\' but failed to get the Troggle Admin page' )
def test_noinfo_login(self):