mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-21 04:10:37 +02:00
test(deploy): fix fdroidserver.deploy.options is None
This commit is contained in:
parent
097f81a565
commit
d1c881e2c3
@ -187,6 +187,7 @@ class DeployTest(unittest.TestCase):
|
|||||||
url.mkdir()
|
url.mkdir()
|
||||||
|
|
||||||
# setup parameters for this test run
|
# setup parameters for this test run
|
||||||
|
fdroidserver.deploy.options = mock.Mock()
|
||||||
fdroidserver.deploy.options.identity_file = None
|
fdroidserver.deploy.options.identity_file = None
|
||||||
fdroidserver.deploy.config['make_current_version_link'] = False
|
fdroidserver.deploy.config['make_current_version_link'] = False
|
||||||
|
|
||||||
@ -470,6 +471,7 @@ class DeployTest(unittest.TestCase):
|
|||||||
|
|
||||||
def test_update_serverwebroot_with_id_file_in_index_only_mode(self):
|
def test_update_serverwebroot_with_id_file_in_index_only_mode(self):
|
||||||
# setup parameters for this test run
|
# setup parameters for this test run
|
||||||
|
fdroidserver.deploy.options = mock.Mock()
|
||||||
fdroidserver.deploy.options.no_chcksum = False
|
fdroidserver.deploy.options.no_chcksum = False
|
||||||
fdroidserver.deploy.options.verbose = True
|
fdroidserver.deploy.options.verbose = True
|
||||||
fdroidserver.deploy.options.quiet = False
|
fdroidserver.deploy.options.quiet = False
|
||||||
@ -539,7 +541,8 @@ class DeployTest(unittest.TestCase):
|
|||||||
not os.getenv('VIRUSTOTAL_API_KEY'), 'VIRUSTOTAL_API_KEY is not set'
|
not os.getenv('VIRUSTOTAL_API_KEY'), 'VIRUSTOTAL_API_KEY is not set'
|
||||||
)
|
)
|
||||||
def test_upload_to_virustotal(self):
|
def test_upload_to_virustotal(self):
|
||||||
fdroidserver.common.options.verbose = True
|
fdroidserver.deploy.options = mock.Mock()
|
||||||
|
fdroidserver.deploy.options.verbose = True
|
||||||
virustotal_apikey = os.getenv('VIRUSTOTAL_API_KEY')
|
virustotal_apikey = os.getenv('VIRUSTOTAL_API_KEY')
|
||||||
fdroidserver.deploy.upload_to_virustotal('repo', virustotal_apikey)
|
fdroidserver.deploy.upload_to_virustotal('repo', virustotal_apikey)
|
||||||
|
|
||||||
@ -897,6 +900,7 @@ class DeployTest(unittest.TestCase):
|
|||||||
|
|
||||||
def test_update_servergitmirrors(self):
|
def test_update_servergitmirrors(self):
|
||||||
# setup parameters for this test run
|
# setup parameters for this test run
|
||||||
|
fdroidserver.deploy.options = mock.Mock()
|
||||||
fdroidserver.deploy.options.identity_file = None
|
fdroidserver.deploy.options.identity_file = None
|
||||||
fdroidserver.deploy.options.no_keep_git_mirror_archive = False
|
fdroidserver.deploy.options.no_keep_git_mirror_archive = False
|
||||||
fdroidserver.deploy.options.verbose = False
|
fdroidserver.deploy.options.verbose = False
|
||||||
@ -952,6 +956,7 @@ class DeployTest(unittest.TestCase):
|
|||||||
|
|
||||||
def test_update_servergitmirrors_in_index_only_mode(self):
|
def test_update_servergitmirrors_in_index_only_mode(self):
|
||||||
# setup parameters for this test run
|
# setup parameters for this test run
|
||||||
|
fdroidserver.deploy.options = mock.Mock()
|
||||||
fdroidserver.deploy.options.identity_file = None
|
fdroidserver.deploy.options.identity_file = None
|
||||||
fdroidserver.deploy.options.no_keep_git_mirror_archive = False
|
fdroidserver.deploy.options.no_keep_git_mirror_archive = False
|
||||||
fdroidserver.deploy.options.verbose = False
|
fdroidserver.deploy.options.verbose = False
|
||||||
@ -1007,10 +1012,12 @@ class DeployTest(unittest.TestCase):
|
|||||||
|
|
||||||
def test_upload_to_servergitmirror_in_index_only_mode(self):
|
def test_upload_to_servergitmirror_in_index_only_mode(self):
|
||||||
# setup parameters for this test run
|
# setup parameters for this test run
|
||||||
|
fdroidserver.deploy.options = mock.Mock()
|
||||||
fdroidserver.deploy.options.identity_file = None
|
fdroidserver.deploy.options.identity_file = None
|
||||||
fdroidserver.deploy.options.no_keep_git_mirror_archive = False
|
fdroidserver.deploy.options.no_keep_git_mirror_archive = False
|
||||||
fdroidserver.deploy.options.verbose = False
|
fdroidserver.deploy.options.verbose = False
|
||||||
fdroidserver.deploy.options.quiet = True
|
fdroidserver.deploy.options.quiet = True
|
||||||
|
fdroidserver.deploy.options.identity_file = None
|
||||||
|
|
||||||
config = {}
|
config = {}
|
||||||
fdroidserver.common.fill_config_defaults(config)
|
fdroidserver.common.fill_config_defaults(config)
|
||||||
|
Loading…
Reference in New Issue
Block a user