1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 19:10:11 +01:00

test(deploy): properly test non-index-only mode

This commit is contained in:
proletarius101 2023-12-14 18:31:29 +00:00 committed by Hans-Christoph Steiner
parent 6743b4b4b5
commit 2958b3be4c

View File

@ -147,7 +147,12 @@ class DeployTest(unittest.TestCase):
url = Path('url')
url.mkdir()
dest_apk = url / fake_apk
# setup parameters for this test run
fdroidserver.deploy.options.identity_file = None
fdroidserver.deploy.options.index_only = False
fdroidserver.deploy.config['make_current_version_link'] = False
dest_apk = Path(url) / fake_apk
self.assertFalse(dest_apk.is_file())
fdroidserver.deploy.options = mock.Mock()
fdroidserver.deploy.options.identity_file = None
@ -170,6 +175,7 @@ class DeployTest(unittest.TestCase):
fdroidserver.common.options.identity_file = None
fdroidserver.common.options.verbose = False
fdroidserver.common.options.quiet = True
fdroidserver.deploy.options.index_only = False
fdroidserver.deploy.config = {'make_current_version_link': True}
url = "example.com:/var/www/fdroid"
repo_section = 'repo'
@ -264,6 +270,7 @@ class DeployTest(unittest.TestCase):
fdroidserver.common.options.verbose = True
fdroidserver.common.options.quiet = False
fdroidserver.common.options.identity_file = None
fdroidserver.deploy.options.index_only = False
fdroidserver.deploy.config = {'identity_file': './id_rsa'}
url = "example.com:/var/www/fdroid"
repo_section = 'archive'