From 11e80c927d8f3ddfc5659930573d91913ba2c149 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 1 Nov 2023 17:26:49 +0100 Subject: [PATCH] Test: django_staticfiles_json --- snallygaster | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/snallygaster b/snallygaster index 13f3842..9a178f6 100755 --- a/snallygaster +++ b/snallygaster @@ -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']: