Add both Applio frontends to dashboard

This commit is contained in:
Mikei386
2026-09-10 11:37:04 +02:00
parent d3534627f0
commit 52482627be
4 changed files with 25 additions and 19 deletions
+16
View File
@@ -85,6 +85,22 @@ class DashboardModeTests(unittest.TestCase):
self.assertEqual(body, {"error": "invalid mode"})
urlopen.assert_not_called()
def test_dashboard_uses_one_status_poll_for_all_mode_labels(self):
html = self.dashboard.HTML
self.assertEqual(html.count("fetch('/api/status'"), 1)
self.assertNotIn("refreshVoiceChange", html)
self.assertIn("voicechange:'X-VC Voice Changer'", html)
self.assertIn("applio:'Applio / RVC'", html)
def test_dashboard_offers_both_applio_frontends(self):
html = self.dashboard.HTML
self.assertIn("Original Applio UI", html)
self.assertIn("Mikes Applio UI", html)
self.assertIn("http://192.168.1.212:8011/", html)
self.assertIn("http://192.168.1.212:8012/", html)
if __name__ == "__main__":
unittest.main()