Skip to content

Commit

Permalink
Test: django_staticfiles_json
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Nov 1, 2023
1 parent da606af commit f134a7f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions snallygaster
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,19 @@ def test_mailman(url):
pout("mailman", f"{murl} {ver}")


@INFO
def test_django_staticfiles_json(url):
furl = url + '/static/staticfiles.json'
data = fetcher(furl)
try:
parsed = json.loads(data)
except json.JSONDecodeError:
pass
else:
if isinstance(parsed, dict) and 'paths' in parsed:
pout('django_staticfiles_json', furl)


@INFO
def test_composer(url):
for c in ['composer.json', 'composer.lock']:
Expand Down

0 comments on commit f134a7f

Please sign in to comment.