diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_frontend.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test_frontend.py b/tests/test_frontend.py index 4f8392b..cb85f9a 100644 --- a/tests/test_frontend.py +++ b/tests/test_frontend.py @@ -52,8 +52,12 @@ class Frontend(unittest.TestCase): status, body = self.get("/") self.assertEqual(status, 200) text = body.decode() - self.assertIn("app.js", text) - self.assertIn("deck.css", text) + for asset in ("app.js", "deck.css", "vendor/gridstack/gridstack-all.js"): + self.assertIn(asset, text) + + def test_vendor_assets_served(self): + for path in ("/vendor/gridstack/gridstack-all.js", "/vendor/gridstack/gridstack.min.css"): + self.assertEqual(self.get(path)[0], 200, path) def test_css_uses_udt_vars(self): status, body = self.get("/deck.css") @@ -78,7 +82,7 @@ class Frontend(unittest.TestCase): status, body = self.get("/app.js") self.assertEqual(status, 200) text = body.decode() - for part in ("localStorage", "deckit.layout", "drag-handle", "resize-handle", "wide"): + for part in ("GridStack", "localStorage", "deckit.layout", "gs-id"): self.assertIn(part, text) |
