NA: ALL AUTO-FIX key pauses or resumes auto-fix at every location; page keys keep their words under the band; rc4 ProP module at WS/SC
- LOCATIONS page key at 3,1: shows ALL ON or the paused locations; tap pauses all, tap again sends each back to its hours - autofix auto: back to the auto-fix hours - the page name and number shrink into the top 60% while the locations band shows - WS and SC Propresenter-API on renewedvision-propresenter-api 1.2.0-rc4 (pinned manual, as NA) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -602,3 +602,17 @@ class TestLocationsBand(unittest.TestCase):
|
||||
band = [l for l in make_page.nav_key("pagenum", na["variables"], 19, cfg=dict(na, nav_locations_band=True))["style"]["layers"]
|
||||
if l.get("name") == "Locations"][0]
|
||||
self.assertNotIn(str(0xFF0000), json.dumps(band)) # never red
|
||||
|
||||
|
||||
class TestAllAutoFix(unittest.TestCase):
|
||||
def test_the_key_names_the_paused_locations_and_sits_where_auto_fix_does(self):
|
||||
from settings import campuses as cv
|
||||
st = lambda x: json.dumps({"autofix": {"x": x}})
|
||||
states = {"na": st("AUTO-FIX\nON\nTIL 9PM"), "sc": st("AUTO-FIX\nOFF\nTIL SUN 5AM"), "ws": st("AUTO-FIX\nOFF"), "ab": None}
|
||||
self.assertEqual(cv.all_autofix_summary(states, 100.0), {"t": 100, "paused": 1, "x": "SC\nPAUSED"}) # WS: outside its hours
|
||||
self.assertEqual(cv.all_autofix_summary({"na": st("AUTO-FIX\nON\nTIL 9PM")}, 100.0)["x"], "ALL ON")
|
||||
na = json.load(open(os.path.join(ROOT, "config.json")))
|
||||
page = cv.build_overview(na, {"na": {"name": "North Attleboro"}, "sc": {"name": "Southcoast"}}, 98, 99)
|
||||
key = page["page"]["controls"]["3"]["1"]
|
||||
self.assertIn("all autofix", key["options"]["notes"])
|
||||
self.assertIn("sp_all_cmd", json.dumps(key["steps"]))
|
||||
|
||||
Reference in New Issue
Block a user