mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-12 18:20:29 +03:00
split out options from read_config()
There is no longer any reason for these to be intertwined. This deliberately avoids touching some files as much as possible because they are super tangled and due to be replaced. Those files are: * fdroidserver/build.py * fdroidserver/update.py # Conflicts: # tests/testcommon.py # Conflicts: # fdroidserver/btlog.py # fdroidserver/import_subcommand.py
This commit is contained in:
parent
685efa23d4
commit
18f3acc32e
53 changed files with 317 additions and 265 deletions
|
|
@ -33,7 +33,7 @@ from fdroidserver import common
|
|||
from fdroidserver import metadata
|
||||
from fdroidserver import signatures
|
||||
from fdroidserver.exception import FDroidException
|
||||
from testcommon import mkdtemp
|
||||
from testcommon import mkdtemp, parse_args_for_test
|
||||
|
||||
|
||||
class PublishTest(unittest.TestCase):
|
||||
|
|
@ -266,7 +266,8 @@ class PublishTest(unittest.TestCase):
|
|||
|
||||
os.chdir(self.testdir)
|
||||
|
||||
config = common.read_config(Options)
|
||||
common.options = Options
|
||||
config = common.read_config()
|
||||
if 'apksigner' not in config:
|
||||
self.skipTest('SKIPPING test_sign_then_implant_signature, apksigner not installed!')
|
||||
config['repo_keyalias'] = 'sova'
|
||||
|
|
@ -340,7 +341,8 @@ class PublishTest(unittest.TestCase):
|
|||
|
||||
os.chdir(self.testdir)
|
||||
|
||||
config = common.read_config(Options)
|
||||
common.options = Options
|
||||
config = common.read_config()
|
||||
if 'apksigner' not in config:
|
||||
self.skipTest('SKIPPING test_error_on_failed, apksigner not installed!')
|
||||
config['repo_keyalias'] = 'sova'
|
||||
|
|
@ -422,7 +424,7 @@ if __name__ == "__main__":
|
|||
default=False,
|
||||
help="Spew out even more information than normal",
|
||||
)
|
||||
common.options = parser.parse_args(['--verbose'])
|
||||
parse_args_for_test(parser, sys.argv)
|
||||
|
||||
newSuite = unittest.TestSuite()
|
||||
newSuite.addTest(unittest.makeSuite(PublishTest))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue