From e8f7771c1fe0feaa40682b63696b19d40973d610 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 18 Jun 2025 14:26:07 +0200 Subject: [PATCH] tests: suppress "WARNING:root:unsafe permissions on 'config.yml' (should be 0600)!" --- tests/test_deploy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_deploy.py b/tests/test_deploy.py index fcc90bd3..f9371c68 100755 --- a/tests/test_deploy.py +++ b/tests/test_deploy.py @@ -26,6 +26,11 @@ def _mock_rclone_config_file(cmd, text): # pylint: disable=unused-argument class DeployTest(unittest.TestCase): '''fdroidserver/deploy.py''' + @classmethod + def setUpClass(cls): + # suppress "WARNING:root:unsafe permissions on 'config.yml' (should be 0600)!" + os.chmod(os.path.join(basedir, fdroidserver.common.CONFIG_FILE), 0o600) + def setUp(self): os.chdir(basedir) self._td = mkdtemp()