Skip to content

Commit

Permalink
Refactor code for compatibility with python2.7
Browse files Browse the repository at this point in the history
Unpacking dictionary with '**' into another dictionary, is not
supported in python2.7
  • Loading branch information
tomasfratrik committed Mar 11, 2024
1 parent 983a603 commit 52bc05f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
VERSION_FILES_MOCKED = {
'common': [
'{}/file_not_rpm_owned'.format(FILES_DIR),
],
**TRACKED_FILES_BY_VERSIONS
]
}

VERSION_FILES_MOCKED.update(TRACKED_FILES_BY_VERSIONS)


@pytest.mark.parametrize('major_version', RHEL_MAJOR_VERSIONS_LIST)
def test_version_files_with_common(monkeypatch, major_version):
Expand Down

0 comments on commit 52bc05f

Please sign in to comment.