Release v0.1.55: Bootstrap-style phone interface and full-screen settings

This commit is contained in:
Codex
2026-10-19 08:19:10 +08:00
parent 4dc3e2fb9f
commit 5b99a7e9fc
13 changed files with 121 additions and 48 deletions
+5 -1
View File
@@ -155,7 +155,11 @@ class LocationSyncTests(unittest.TestCase):
with self.assertRaises(app.Problem):self.configure(phone,viewerIds=[self.owner['id']],sampleIntervalSeconds=invalid)
def test_daily_sampling_wait_and_overdue_are_distinct_from_upload(self):
phone=self.enabled(intervalSeconds=300,sampleIntervalSeconds=86400);started=phone['collectionStartedAt']
# Scheduling and history create their timestamps separately. Freeze this
# logical start event so sub-millisecond wall-clock drift cannot fail it.
with patch('member_locations.time.time',return_value=time.time()):
phone=self.enabled(intervalSeconds=300,sampleIntervalSeconds=86400)
started=phone['collectionStartedAt']
with patch('member_locations.time.time',return_value=started+3600):
row=app.LOCATIONS.listing(self.aid,user=self.owner)[0]
self.assertEqual(row['status'],'scheduled');self.assertEqual(row['scheduleReason'],'sampling')