forked from expo/troggle
Fix bugs
This commit is contained in:
@@ -272,7 +272,7 @@ class PageTests(TestCase):
|
||||
for ph in [
|
||||
r'a href="/expofiles/documents/bier-tent-instructions.pdf">bier-tent-instructions.pdf',
|
||||
r'a href="/expofiles/documents/boc.pdf">boc.pdf',
|
||||
r'a href="/expofiles/documents/bierbook">/bierbook',
|
||||
r'a href="/expofiles/documents/idiots-guide-expo-git.pdf"',
|
||||
]:
|
||||
phmatch = re.search(ph, content)
|
||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")
|
||||
@@ -343,7 +343,7 @@ class PageTests(TestCase):
|
||||
|
||||
def test_page_expofile_document_rope_pdf(self):
|
||||
# Flat file tests.
|
||||
response = self.client.get("/expofiles/documents/rope-age-agm-2019.pdf")
|
||||
response = self.client.get("/expofiles/documents/ropes/rope-age-agm-2019.pdf")
|
||||
if response.status_code != HTTPStatus.OK:
|
||||
self.assertEqual(response.status_code, HTTPStatus.FOUND)
|
||||
if response.status_code != HTTPStatus.FOUND:
|
||||
|
||||
Reference in New Issue
Block a user