mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-10 17:30:11 +01:00
simplify test setup
I'm in the midst of working towards getting rid of the "config" instances that are in the subcommand module, e.g. `fdroidserver.lint.config`
This commit is contained in:
parent
14c8647909
commit
9a9b5beeaa
@ -465,19 +465,13 @@ class LintTest(unittest.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_lint_known_debug_keys(self):
|
def test_lint_known_debug_keys(self):
|
||||||
config = dict()
|
fdroidserver.common.config = {
|
||||||
fdroidserver.common.fill_config_defaults(config)
|
'apk_signing_key_block_list': 'a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc'
|
||||||
config['apk_signing_key_block_list'] = [
|
}
|
||||||
'a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc'
|
|
||||||
]
|
|
||||||
fdroidserver.common.config = config
|
|
||||||
fdroidserver.lint.config = config
|
|
||||||
|
|
||||||
app = fdroidserver.metadata.App()
|
app = fdroidserver.metadata.App()
|
||||||
app.AllowedAPKSigningKeys = [
|
app.AllowedAPKSigningKeys = [
|
||||||
'a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc'
|
'a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc'
|
||||||
]
|
]
|
||||||
|
|
||||||
for warn in fdroidserver.lint.check_certificate_pinned_binaries(app):
|
for warn in fdroidserver.lint.check_certificate_pinned_binaries(app):
|
||||||
anywarns = True
|
anywarns = True
|
||||||
logging.debug(warn)
|
logging.debug(warn)
|
||||||
|
Loading…
Reference in New Issue
Block a user