From f134a7f491b503a4661fc6acf1428e5900d912c8 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 bc136cc..bbb22a9 100755 --- a/snallygaster +++ b/snallygaster @@ -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']: