diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-28 09:04:21 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-28 09:04:21 +0100 |
| commit | 4b9d9661751379ea62ebdc2587dff20544c4ada4 (patch) | |
| tree | 2b118fb50a98c8e84e11cec39157bb244b0bca04 /tests | |
| parent | 8397638ec70b23e05ef490e15f5d7c5c05e52d1f (diff) | |
| download | deck-it-4b9d9661751379ea62ebdc2587dff20544c4ada4.tar.gz deck-it-4b9d9661751379ea62ebdc2587dff20544c4ada4.zip | |
feat(xbox): mark captures saved on the PC, icon save button
A capture whose file is already in Pictures/Xbox or Videos/Xbox carries
`saved` and gets a check on its tile. The viewer keeps one icon button,
save to PC; the download to the tablet is gone. Deleting from Xbox Live
was tried and dropped: mediahub's DELETE answers 403 (errorCode 10401)
to a token from our own Azure app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_xbox.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_xbox.py b/tests/test_xbox.py index 85146a4..62872af 100644 --- a/tests/test_xbox.py +++ b/tests/test_xbox.py @@ -430,6 +430,11 @@ class Save(Base): xb.user_dir = old self.assertEqual(path, d / "VIDEOS" / "Xbox" / "Some Game 2026-11-23T10-00-00.mp4") self.assertEqual(path.read_bytes(), b"clip") + xb.user_dir = lambda name: d / name + try: + self.assertEqual([c["saved"] for c in x.state()["captures"]], [True, False]) + finally: + xb.user_dir = old class Commands(Base): |
