mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
tests: standardize on VerboseFalseOptions as mock
This commit is contained in:
parent
7ff32bc4b0
commit
487269c667
5 changed files with 13 additions and 17 deletions
|
@ -11,16 +11,11 @@ from unittest import mock
|
|||
import git
|
||||
|
||||
import fdroidserver
|
||||
from .testcommon import TmpCwd, mkdtemp
|
||||
from .testcommon import TmpCwd, mkdtemp, VerboseFalseOptions
|
||||
|
||||
basedir = Path(__file__).parent
|
||||
|
||||
|
||||
class Options:
|
||||
quiet = False
|
||||
verbose = False
|
||||
|
||||
|
||||
class DeployTest(unittest.TestCase):
|
||||
'''fdroidserver/deploy.py'''
|
||||
|
||||
|
@ -122,7 +117,7 @@ class DeployTest(unittest.TestCase):
|
|||
fdroidserver.deploy.config['rclone'] = True
|
||||
fdroidserver.deploy.config['rclone_config'] = 'test-local-config'
|
||||
fdroidserver.deploy.config['path_to_custom_rclone_config'] = str(rclone_file)
|
||||
fdroidserver.common.options = Options
|
||||
fdroidserver.common.options = VerboseFalseOptions
|
||||
|
||||
# write out destination path
|
||||
destination = Path('test_bucket_folder/fdroid')
|
||||
|
@ -166,7 +161,7 @@ class DeployTest(unittest.TestCase):
|
|||
fdroidserver.deploy.config['rclone'] = True
|
||||
fdroidserver.deploy.config['rclone_config'] = 'test-local-config'
|
||||
fdroidserver.deploy.config['path_to_custom_rclone_config'] = str(rclone_file)
|
||||
fdroidserver.common.options = Options
|
||||
fdroidserver.common.options = VerboseFalseOptions
|
||||
|
||||
# write out destination path
|
||||
destination = Path('test_bucket_folder/fdroid')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue