feat: add test for Rocky Linux 8 #1

Merged
xoxys merged 5 commits from test-rocky8 into master 2021-10-04 19:18:30 +00:00
2 changed files with 14 additions and 2 deletions
Showing only changes of commit 4b385fc7ba - Show all commits

View File

@ -13,3 +13,9 @@ def test_python3_is_installed(host):
assert python3.is_installed
assert pip3.is_installed
def test_python3_bin(host):
version = host.run("/opt/rh/rh-python38/root/usr/bin/python3 --version").stdout
assert "Python 3.8" in version

View File

@ -8,8 +8,14 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
def test_python3_is_installed(host):
python3 = host.package("python3")
pip3 = host.package("python3-pip")
python3 = host.package("python39")
pip3 = host.package("python39-pip")
assert python3.is_installed
assert pip3.is_installed
def test_python3_bin(host):
version = host.run("/usr/bin/python3 --version").stdout
assert "Python 3.9" in version