These changes catch a few more intermittent test failures.
test_download_file was mocking the builtin open, which could in some cases break the test depending on test order. Adjusted the test to avoid using the mock.
test_list_tagged was mocking some os.path functions, which could break optparse calls in some cases, depending on test order. In particular, running test_list_tagged.py::TestCliListTagged::test_list_tagged_sigs_paths by itself would fail.
These changes catch a few more intermittent test failures.
test_download_file was mocking the builtin open, which could in some cases break the test depending on test order. Adjusted the test to avoid using the mock.
test_list_tagged was mocking some os.path functions, which could break optparse calls in some cases, depending on test order. In particular, running
test_list_tagged.py::TestCliListTagged::test_list_tagged_sigs_pathsby itself would fail.Fixes https://pagure.io/koji/issue/4462