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:
@@ -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' )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user