Skip to content

Commit

Permalink
Rebase and fix unused tests
Browse files Browse the repository at this point in the history
Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
  • Loading branch information
r0x0d committed Jun 3, 2022
1 parent e5115c7 commit acc88c6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions convert2rhel/unit_tests/checks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,21 +1109,3 @@ def test_is_loaded_kernel_latest_unsupported_skip(
is_loaded_kernel_latest()

assert expected in caplog.records[-1].message

@pytest.mark.parametrize(
("pkg_name", "expected"),
(
("kernel-core-0:4.18.0-240.10.1.el8_3.x86_64", (4, 18, 0, 240, 10, 1)),
(
"kernel-debug-1:4.19.1-270.11.2.el8_3.x86_64",
(4, 19, 1, 270, 11, 2),
),
),
)
def test_repos_version_key(pkg_name, expected):
assert checks._repos_version_key(pkg_name=pkg_name) == expected


def test_repos_version_key_system_exit():
with pytest.raises(SystemExit):
checks._repos_version_key("kernel-core.el8_3.x86_64")

0 comments on commit acc88c6

Please sign in to comment.