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

Complaints now on wallet page

This commit is contained in:
Philip Sargent
2022-07-17 15:01:53 +03:00
parent 7c82c2d97c
commit b20e6c5a58
3 changed files with 233 additions and 141 deletions

View File

@@ -81,6 +81,9 @@ class PostTests(TestCase):
def test_scan_upload(self):
'''Expect scan upload to wallet to work on any file
Need to login first.
This upload form looks for the cave, so the test fails if the database is not loaded with the cave
identified in the wallet
'''
c = self.client
from django.contrib.auth.models import User
@@ -99,8 +102,8 @@ class PostTests(TestCase):
for ph in [ r'test_upload_',
r'← 2020#00 →',
r'description written',
r'plan not required',
r'Upload scan into wallet']:
r'Plan not required',
r'edit settings or upload a file']:
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")