From 1371cf2fcb2ad3ead628c196e7db69c37171c71e Mon Sep 17 00:00:00 2001 From: Mariam Ahhttouche Date: Fri, 20 Feb 2026 17:06:08 +0100 Subject: [PATCH] uv_python module: fix integration tests --- .../targets/uv_python/tasks/main.yaml | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/integration/targets/uv_python/tasks/main.yaml b/tests/integration/targets/uv_python/tasks/main.yaml index 08b135b34b..fec27dd6f9 100644 --- a/tests/integration/targets/uv_python/tasks/main.yaml +++ b/tests/integration/targets/uv_python/tasks/main.yaml @@ -39,7 +39,7 @@ that: - install_check_mode.changed is true - install_check_mode.failed is false - - '"3.14" in install_check_mode.python_version' + - 'install_check_mode.python_versions != []' - name: Install python 3.14 uv_python: @@ -47,12 +47,12 @@ state: present register: install_python -- name: Verify python 3.14 installation in check mode +- name: Verify python 3.14 installation assert: that: - install_python.changed is true - install_python.failed is false - - '"3.14" in install_python.python_version' + - 'install_python.python_versions != []' - name: Re-install python 3.14 uv_python: @@ -65,7 +65,7 @@ that: - reinstall_python.changed is false - reinstall_python.failed is false - - '"3.14" in reinstall_python.python_version' + - 'reinstall_python.python_versions != []' - name: Install latest python 3.15 # installs latest patch version for 3.15 uv_python: @@ -78,7 +78,7 @@ that: - install_latest_python.changed is true - install_latest_python.failed is false - - '"3.15" in install_latest_python.stdout' + - 'install_latest_python.stdout != []' - name: Install python 3.13.5 uv_python: @@ -91,7 +91,7 @@ that: - install_python.changed is true - install_python.failed is false - - '"3.13.5" in install_python.python_version' + - 'install_python.python_versions != []' - name: Re-install python 3.13.5 uv_python: @@ -104,7 +104,7 @@ that: - reinstall_python.changed is false - reinstall_python.failed is false - - '"3.13.5" in reinstall_python.python_version' + - 'reinstall_python.python_versions != []' - name: Remove unexisting python 3.10 # removes latest patch version for 3.10 if exists uv_python: @@ -117,7 +117,7 @@ that: - remove_python.changed is false - remove_python.failed is false - - 'remove_python.stdout == ""' + - 'remove_python.python_versions == []' - name: Remove python 3.13.5 in check mode uv_python: @@ -131,7 +131,7 @@ that: - remove_python_in_check_mode.changed is true - remove_python_in_check_mode.failed is false - - '"3.13.5" in remove_python_in_check_mode.stdout' + - 'remove_python_in_check_mode.python_versions != []' - name: Remove python 3.13.5 uv_python: @@ -144,7 +144,7 @@ that: - remove_python.changed is true - remove_python.failed is false - - '"3.13.5" in remove_python_in_check_mode.stdout' + - 'remove_python_in_check_mode.python_versions != []' - name: Remove python 3.13.5 again uv_python: @@ -157,7 +157,7 @@ that: - remove_python.changed is false - remove_python.failed is false - - 'remove_python.stdout == ""' + - 'remove_python.python_versions == []' - name: Install python 3 uv_python: @@ -183,7 +183,7 @@ that: - upgrade_python.changed is true - upgrade_python.failed is false - - '"3.13" in upgrade_python.stdout' + - 'upgrade_python.python_versions != []' - name: Upgrade python 3.13 in check mode uv_python: @@ -197,7 +197,7 @@ that: - upgrade_python.changed is false - upgrade_python.failed is false - - '"3.13" in upgrade_python.stdout' + - 'upgrade_python.python_versions != []' - name: Upgrade python 3.13 again uv_python: @@ -211,7 +211,7 @@ that: - upgrade_python.changed is false - upgrade_python.failed is false - - '"3.13" in upgrade_python.stdout' + - 'upgrade_python.python_versions != []' - name: Install unexisting python version in check mode uv_python: