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 d1640c8 commit 11e80c9
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 @@ -804,6 +804,19 @@ def test_mailman(url):
pout("mailman", "%s %s" % (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 11e80c9

Please sign in to comment.