Reduce duplication in tests
Set the dummy compose into non-debug mode in a single place, and only change it when needed. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
19a42792db
commit
7c5020e82d
8 changed files with 2 additions and 39 deletions
|
|
@ -153,6 +153,8 @@ class DummyCompose(object):
|
|||
self.require_deliverable = mock.Mock()
|
||||
self.should_create_yum_database = True
|
||||
|
||||
self.DEBUG = False
|
||||
|
||||
def setup_optional(self):
|
||||
self.all_variants['Server-optional'] = MockVariant(
|
||||
uid='Server-optional', arches=['x86_64'], type='optional')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue