Release v0.1.55: Bootstrap-style phone interface and full-screen settings
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user