Skip to content

Commit 3e4196c

Browse files
committed
Fix scanrolloutrepositories test function calls
1 parent 9fb8938 commit 3e4196c

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

repos/system_upgrade/cloudlinux/actors/scanrolloutrepositories/tests/test_releasever_replace.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from leapp.libraries.actor import scanrolloutrepositories
1+
from leapp.libraries.actor import scanrolloutrepositories
22
from leapp.libraries.common import cl_repofileutils
33
from leapp.libraries.common.testutils import produce_mocked
44
from leapp.libraries.stdlib import api
@@ -34,14 +34,17 @@ def __call__(self):
3434

3535

3636
def test_valid_repofile_exists(monkeypatch):
37-
def create_leapp_repofile_copy_mocked():
37+
def create_leapp_repofile_copy_mocked(*args, **kwargs):
3838
return "/leapp_copy_path/newrepo.repo"
3939

4040
monkeypatch.setattr(api, 'produce', produce_mocked())
41-
monkeypatch.setattr(cl_repofileutils, 'create_leapp_repofile_copy', create_leapp_repofile_copy_mocked)
41+
monkeypatch.setattr(
42+
scanrolloutrepositories, 'create_leapp_repofile_copy',
43+
create_leapp_repofile_copy_mocked,
44+
)
4245
monkeypatch.setattr(api, 'current_logger', LoggerMocked())
4346

44-
scanrolloutrepositories.process_repodata(_REPOFILE)
47+
scanrolloutrepositories.process_repodata(_REPOFILE, _REPOFILE.file)
4548

4649
assert api.produce.called == len(_REPODATA) + 1
4750

0 commit comments

Comments
 (0)