From 437f5613a2dcbdcf412247c8d2de6e2d9dd0a24d Mon Sep 17 00:00:00 2001 From: gardar Date: Fri, 17 Nov 2023 17:32:45 +0000 Subject: [PATCH] fix: make sure pytest and pytest-testinfra versions stay compatible Signed-off-by: gardar --- test-requirements.txt | 1 + tests/integration/molecule.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 7daefde..1b558df 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,6 @@ molecule docker +pytest pytest-testinfra selinux passlib diff --git a/tests/integration/molecule.sh b/tests/integration/molecule.sh index 5754595..4a0cf52 100755 --- a/tests/integration/molecule.sh +++ b/tests/integration/molecule.sh @@ -13,11 +13,11 @@ apt -y install docker.io # Install test requirements from role if [ -f "$role_root/test-requirements.txt" ]; then - python -m pip install -r "$role_root/test-requirements.txt" + python -m pip install --upgrade -r "$role_root/test-requirements.txt" fi # Install test requirements from collection if [ -f "$collection_root/test-requirements.txt" ]; then - python -m pip install -r "$collection_root/test-requirements.txt" + python -m pip install --upgrade -r "$collection_root/test-requirements.txt" fi # Install ansible version specific requirements