Fixes https://pagure.io/koji/issue/4431
The unit test was never meant to read the system config. This adjustment to the mock setup solves the issue.
@jcupova
Looks good to me. All of the Python3 tests for me now.
Thank you @mikem !
Metadata Update from @mikem: - Pull-request tagged with: no_qe
mock now is only available in py2 testenv, so it should be from unitest import mock here
mock
from unitest import mock
ah, yet another test whose origin straddled that change. #4150 was only recently merged, but was mostly written in 2024, before #4239 was merged
1 new commit added
fix mock import
:thumbsup:
rebased onto 7c2d768d225ecccd17fdf1b5ca71790ae1118369
Commit 5619342e fixes this pull-request
Pull-Request has been merged by mikem
Fixes https://pagure.io/koji/issue/4431
The unit test was never meant to read the system config. This adjustment to the mock setup solves the issue.