From 9a9b5beeaa35335192acad446c895f85b7d7e3a6 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 7 May 2024 13:19:57 +0200 Subject: [PATCH] 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` --- tests/lint.TestCase | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/lint.TestCase b/tests/lint.TestCase index e5a0bd75..5dd94d4b 100755 --- a/tests/lint.TestCase +++ b/tests/lint.TestCase @@ -465,19 +465,13 @@ class LintTest(unittest.TestCase): ) def test_lint_known_debug_keys(self): - config = dict() - fdroidserver.common.fill_config_defaults(config) - config['apk_signing_key_block_list'] = [ - 'a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc' - ] - fdroidserver.common.config = config - fdroidserver.lint.config = config - + fdroidserver.common.config = { + 'apk_signing_key_block_list': 'a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc' + } app = fdroidserver.metadata.App() app.AllowedAPKSigningKeys = [ 'a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc' ] - for warn in fdroidserver.lint.check_certificate_pinned_binaries(app): anywarns = True logging.debug(warn)