diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2026-09-10 15:57:46 -0400 |
|---|---|---|
| committer | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2026-09-10 15:57:46 -0400 |
| commit | 3681bbb57c8f66bb789b493fe8bcd920245136a3 (patch) | |
| tree | 6fddc4dd4ea02c0b15d5c51e0d0b28c3fc21d8c5 /tests/test_flatpak_service.py | |
| parent | f42e96bef11f7e6adec4d4272cce6af65f7f2895 (diff) | |
| download | decky-lsfg-vk-3681bbb57c8f66bb789b493fe8bcd920245136a3.tar.gz decky-lsfg-vk-3681bbb57c8f66bb789b493fe8bcd920245136a3.zip | |
test: isolate app override restoration from runtime ownershipv2-explicit-flatpak
Diffstat (limited to 'tests/test_flatpak_service.py')
| -rw-r--r-- | tests/test_flatpak_service.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_flatpak_service.py b/tests/test_flatpak_service.py index 208e05b..065871b 100644 --- a/tests/test_flatpak_service.py +++ b/tests/test_flatpak_service.py @@ -213,6 +213,7 @@ class FlatpakServiceTests(unittest.TestCase): self.assertFalse(self.service.ownership_path.exists()) def test_remove_restores_exact_previous_override(self): + self.system_branches = {"24.08"} original = "[Context]\nfilesystems=~/Documents;\n\n[Environment]\nFOO=bar\n" path = self.service._override_path("com.example.Game") path.parent.mkdir(parents=True, exist_ok=True) @@ -226,6 +227,7 @@ class FlatpakServiceTests(unittest.TestCase): self.assertFalse(self.service.ownership_path.exists()) def test_remove_deletes_override_created_by_plugin(self): + self.system_branches = {"24.08"} self.assertTrue(self.service.prepare_app("com.example.Game")["success"]) path = self.service._override_path("com.example.Game") self.assertTrue(path.exists()) @@ -234,8 +236,10 @@ class FlatpakServiceTests(unittest.TestCase): self.assertTrue(response["success"]) self.assertFalse(path.exists()) + self.assertFalse(self.service.ownership_path.exists()) def test_remove_fails_closed_after_external_change(self): + self.system_branches = {"24.08"} self.assertTrue(self.service.prepare_app("com.example.Game")["success"]) path = self.service._override_path("com.example.Game") with path.open("a", encoding="utf-8") as handle: |
