Add both Applio frontends to dashboard
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user