mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +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
|
@ -7,7 +7,7 @@ from git import Repo
|
|||
|
||||
import fdroidserver.common
|
||||
import fdroidserver.metadata
|
||||
from .testcommon import mkdtemp
|
||||
from .testcommon import mkdtemp, VerboseFalseOptions
|
||||
|
||||
|
||||
class VCSTest(unittest.TestCase):
|
||||
|
@ -54,7 +54,7 @@ class VCSTest(unittest.TestCase):
|
|||
vcs, build_dir = fdroidserver.common.setup_vcs(app)
|
||||
# force an init of the repo, the remote head error only occurs on the second gotorevision call
|
||||
|
||||
fdroidserver.common.options = type('Options', (), {'verbose': False})
|
||||
fdroidserver.common.options = VerboseFalseOptions
|
||||
vcs.gotorevision(build.commit)
|
||||
fdroidserver.common.prepare_source(
|
||||
vcs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue