tests: standardize on VerboseFalseOptions as mock

This commit is contained in:
Hans-Christoph Steiner committed 2024-11-20 10:46:21 +01:00
1 parent 7ff32bc4b0
commit 487269c667
5 files changed
+13 -17

No files matched your search

+2 -2
View File
@@ -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,