Skip to content

Commit

Permalink
Merge branch 'main' into auto-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT authored Nov 9, 2024
2 parents b26eded + 3fac55b commit 945b165
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions website/tests_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,21 @@ def check_urls(urlpatterns, prefix=""):
if not any(x in url for x in matches):
with transaction.atomic():
response = self.client.get(url)
self.assertIn(response.status_code, allowed_http_codes, msg=url)
self.assertIn(
response.status_code,
allowed_http_codes,
msg="!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!the url that caused the eror is: %s"
% url,
)
self.selenium.get("%s%s" % (self.live_server_url, url))

for entry in self.selenium.get_log("browser"):
self.assertNotIn("SyntaxError", str(entry), msg=url)
self.assertNotIn(
"SyntaxError",
str(entry),
msg="!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!the url that caused the eror is: %s"
% url,
)

check_urls(module.urlpatterns)

Expand Down

0 comments on commit 945b165

Please sign in to comment.