adjust tests
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
Robert Kaussow 2021-10-04 20:47:49 +02:00
parent 588e8a0a8a
commit 4b385fc7ba
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 14 additions and 2 deletions

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