From a9d709f6dd893b6fab6750b67f0c4f367458f40c Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 9 Nov 2026 18:53:11 +0100 Subject: feat: vendored Gridstack for drag and free grid resize --- tests/test_frontend.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests') 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) -- cgit v1.2.3