Peach: Local-first video metadata scraper and media manager.
test(updates): 自动下载设置往返用例固定在有应用内更新的前提上
longmeidao3dc65516ffc0
diff --git a/tests/test_onboarding.py b/tests/test_onboarding.pyindex 3aba539d0..65f6c4ac5 100644--- a/tests/test_onboarding.py+++ b/tests/test_onboarding.py@@ -992,7 +992,8 @@ class StandaloneConfigurationTests(_Case):from peach.automatic_updates import AutomaticUpdatespath = "/api/configuration/automatic-updates"headers = {"X-Token": "test-token"}- with self.client() as client:+ # 自动下载只在有应用内更新的 Windows 独立包上可选;macOS 被拒见 test_automatic_updates。+ with self.client() as client, mock.patch("peach.distribution.in_app_update", return_value=True):client.app.state.automatic_updates = AutomaticUpdates(self.root, available=True)self.assertEqual(client.get(path).status_code, 401)self.assertEqual(client.post(path, headers=dict(headers, Origin="https://evil.example"),