mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +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
|
@ -13,7 +13,7 @@ import git
|
|||
import requests
|
||||
import yaml
|
||||
|
||||
from .testcommon import TmpCwd, mkdtemp
|
||||
from .testcommon import TmpCwd, mkdtemp, VerboseFalseOptions
|
||||
|
||||
import fdroidserver
|
||||
import fdroidserver.import_subcommand
|
||||
|
@ -91,7 +91,7 @@ class ImportTest(unittest.TestCase):
|
|||
print('Skipping ImportTest!')
|
||||
return
|
||||
|
||||
fdroidserver.common.options = type('Options', (), {'verbose': False})
|
||||
fdroidserver.common.options = VerboseFalseOptions
|
||||
app = fdroidserver.import_subcommand.get_app_from_url(url)
|
||||
fdroidserver.import_subcommand.clone_to_tmp_dir(app)
|
||||
self.assertEqual(app.RepoType, 'git')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue