"""Settings (app 0.2.45): New screen, Firmware & USB, firmware updates, Alerts and Claude moved off the main page into a view of their own, so the header keeps one button and My screens keeps the editor.""" from pathlib import Path import re import unittest STATIC = Path(__file__).resolve().parents[1] / 'screen_manager/app/static' def between(text, start, end): return text.split(start, 1)[1].split(end, 1)[0] class SettingsView(unittest.TestCase): def setUp(self): self.html = (STATIC / 'index.html').read_text() self.script = (STATIC / 'app.js').read_text() self.css = (STATIC / 'style.css').read_text() def test_header_keeps_only_the_settings_button(self): header = between(self.html, '
', '
') self.assertEqual(re.findall(r'