https://bugzilla.redhat.com/show_bug.cgi?id=2081968
Nils Philippsen nphilipp@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|asaleh@redhat.com |nphilipp@redhat.com Status|NEW |ASSIGNED
--- Comment #2 from Nils Philippsen nphilipp@redhat.com --- (In reply to Miro Hrončok from comment #1)
Replacing:
pkg_converter = unittest.mock.Mock(spec=convert.PkgConverter)()
...with:
pkg_converter = convert.PkgConverter()
...does the trick. convert.PkgConverter is already a mock.
Yeah, but that just seems to hide issues. I didn't write the test myself and I'm still figuring out how it's supposed to work but it looks pretty much as if things should be run through the real `PkgConverter` object and the mock just exists to be able to inspect what was called and such.