This commit is contained in:
parent
588e8a0a8a
commit
4b385fc7ba
@ -13,3 +13,9 @@ def test_python3_is_installed(host):
|
|||||||
|
|
||||||
assert python3.is_installed
|
assert python3.is_installed
|
||||||
assert pip3.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
|
||||||
|
@ -8,8 +8,14 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||||||
|
|
||||||
|
|
||||||
def test_python3_is_installed(host):
|
def test_python3_is_installed(host):
|
||||||
python3 = host.package("python3")
|
python3 = host.package("python39")
|
||||||
pip3 = host.package("python3-pip")
|
pip3 = host.package("python39-pip")
|
||||||
|
|
||||||
assert python3.is_installed
|
assert python3.is_installed
|
||||||
assert pip3.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
|
||||||
|
Loading…
Reference in New Issue
Block a user