mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-08-07 05:46:15 -04:00
tests: standardize on VerboseFalseOptions as mock
This commit is contained in:
1 parent
7ff32bc4b0
commit
487269c667
5 files changed
+13
-17
No files matched your search
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user