aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_frontend.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-09 18:18:10 +0100
committerDanilo M. <danix@danix.xyz>2026-11-09 18:18:10 +0100
commit2e86bcdc2132e7772e20e9f4426e3f079a07e5e0 (patch)
tree6ad406071097fee9b7347c1b8605188d17de99a7 /tests/test_frontend.py
parente2ddaeb9a9271069a36b77112110fa8e646ab02f (diff)
downloaddeck-it-2e86bcdc2132e7772e20e9f4426e3f079a07e5e0.tar.gz
deck-it-2e86bcdc2132e7772e20e9f4426e3f079a07e5e0.zip
feat: llm usage panel
Diffstat (limited to 'tests/test_frontend.py')
-rw-r--r--tests/test_frontend.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/test_frontend.py b/tests/test_frontend.py
index 94ea88f..fb4df7e 100644
--- a/tests/test_frontend.py
+++ b/tests/test_frontend.py
@@ -60,12 +60,18 @@ class Frontend(unittest.TestCase):
self.assertEqual(status, 200)
self.assertIn(b"--udt-", body)
- def test_obs_panel_served(self):
- status, body = self.get("/modules/obs.js")
- self.assertEqual(status, 200)
+ def assert_panel(self, name):
+ status, body = self.get(f"/modules/{name}.js")
+ self.assertEqual(status, 200, name)
text = body.decode()
for part in ("export default", "mount", "update"):
- self.assertIn(part, text)
+ self.assertIn(part, text, name)
+
+ def test_obs_panel_served(self):
+ self.assert_panel("obs")
+
+ def test_llm_panel_served(self):
+ self.assert_panel("llm")
if __name__ == "__main__":