2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 13:57:45 +00:00

stop file logging from tests

This commit is contained in:
Philip Sargent
2021-04-23 03:05:22 +01:00
parent 8f89b022c7
commit 1a4be0f02e
3 changed files with 12 additions and 12 deletions

View File

@@ -56,8 +56,8 @@ class FixturePageTests(TestCase):
response = c.get('/admin/')
content = response.content.decode()
with open('admin-op.html', 'w') as f:
f.write(content)
# with open('admin-op.html', 'w') as f:
# f.write(content)
t = re.search(r'Troggle administration', content)
self.assertIsNone(t, 'Logged in as \'' + u.username + '\' (not staff) but still managed to get the Admin page' )