Use dnf backend for repoclosure on PY3
When yum is not available, it makes no sense to offer it as an option. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
60cc3e5d55
commit
d5a0316877
4 changed files with 9 additions and 5 deletions
|
|
@ -192,7 +192,9 @@ class TestRepoclosure(PungiTestCase):
|
|||
@mock.patch('pungi.wrappers.repoclosure.get_repoclosure_cmd')
|
||||
@mock.patch('pungi.phases.test.run')
|
||||
def test_repoclosure_default_backend(self, mock_run, mock_grc):
|
||||
compose = DummyCompose(self.topdir, {})
|
||||
with mock.patch('six.PY2', new=True):
|
||||
compose = DummyCompose(self.topdir, {})
|
||||
|
||||
test_phase.run_repoclosure(compose)
|
||||
|
||||
self.assertItemsEqual(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue