2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 17:47:07 +00:00

fixed test mistake & bug in Edit This

This commit is contained in:
Philip Sargent
2021-05-02 22:47:59 +01:00
parent 51da26564f
commit 4782f3b184
2 changed files with 4 additions and 6 deletions

View File

@@ -91,9 +91,9 @@ class PostTests(TestCase):
content = response.content.decode()
self.assertEqual(response.status_code, 200)
self.assertEqual(response.status_code, HTTPStatus.OK)
with open('test_up.html', 'w') as f:
f.write(content)
t = re.search('<em>\'README', content)
# with open('test_up.html', 'w') as f:
# f.write(content)
t = re.search('<em>README', content)
self.assertIsNotNone(t, 'Logged in but failed to see "<em>\'README"' )
t = re.search(' saved as', content)
self.assertIsNotNone(t, 'Logged in but failed to see "File(s) saved as"' )