mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
tests: suppress "WARNING:root:unsafe permissions on 'config.yml' (should be 0600)!"
This commit is contained in:
parent
04ec16d68a
commit
e8f7771c1f
1 changed files with 5 additions and 0 deletions
|
|
@ -26,6 +26,11 @@ def _mock_rclone_config_file(cmd, text): # pylint: disable=unused-argument
|
||||||
class DeployTest(unittest.TestCase):
|
class DeployTest(unittest.TestCase):
|
||||||
'''fdroidserver/deploy.py'''
|
'''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):
|
def setUp(self):
|
||||||
os.chdir(basedir)
|
os.chdir(basedir)
|
||||||
self._td = mkdtemp()
|
self._td = mkdtemp()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue