diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-15 15:09:58 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-15 15:09:58 +0200 |
| commit | 39cac2878de059992cb09a1ccf09b6bcece99fae (patch) | |
| tree | c4686f00fdf40e90b4b74144c1e8fd8fb8b8ed0b /packages/meshbay-hub/tests/test_phone_sync.py | |
| parent | 7fc2fa04d7d88a1cdf0d290ddd2de3815a7d52a5 (diff) | |
| download | meshbay-39cac2878de059992cb09a1ccf09b6bcece99fae.tar.gz | |
feat(android): no text messages backup, and one build again
READ_SMS sits behind restricted settings outside a store and Play
keeps it for the default SMS application: not worth a second build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/test_phone_sync.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_phone_sync.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/packages/meshbay-hub/tests/test_phone_sync.py b/packages/meshbay-hub/tests/test_phone_sync.py index 0798ef0..1a35614 100644 --- a/packages/meshbay-hub/tests/test_phone_sync.py +++ b/packages/meshbay-hub/tests/test_phone_sync.py @@ -99,13 +99,6 @@ win.meshbay = { contactSync: { return fake.status; }, failed: async (code, text) => { fake.log.push(['failed', code, text]); return true; }, -}, messageSync: { - status: async () => ({ ...fake.status, on: !!fake.messagesOn, dir: 'Backups/bob-messages' }), - plan: async () => ({ item: { token: 'm1', name: 'sms-2026-10-10-0900.xml', - dir: 'Backups/bob-messages/2026', size: 4, count: 300 } }), - sent: async (token, dir, name) => { fake.log.push(['sent', token, dir, name]); return true; }, - completed: async () => { fake.log.push(['completed']); return fake.status; }, - failed: async (code, text) => { fake.log.push(['failed', code, text]); return true; }, } }; """ @@ -184,18 +177,6 @@ await m.runDocSync('contacts', { force: true }); assert len(_of(log, "upload")) == 1 -def test_messages_go_under_the_year_in_their_own_folder(tmp_path): - log = _run(""" -fake.messagesOn = true; -m.startPhoneSync(ctx); -await m.runDocSync('contacts'); -await m.runDocSync('messages'); -""", tmp_path) - assert _of(log, "mkdir")[-2:] == [["Backups/bob-messages"], ["Backups/bob-messages/2026"]] - assert ["upload", "Backups/bob-messages/2026", "sms-2026-10-10-0900.xml", "tr-4"] in log - assert ["sent", "m1", "Backups/bob-messages/2026", "sms-2026-10-10-0900.xml"] in log - - # ── alone in the group, at every run ──────────────────────────────────────── def test_the_group_is_asked_about_at_every_run(tmp_path): |