Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Python 3.12 when calling Pytest #17680

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Feb 25, 2025

Problem Statement

Satellite switched to using Python 3.12 for ansible-runner, braking importing it on Python 3.11.

Solution

We need to use Python 3.12 for Pytest

Related Issues

@evgeni evgeni requested a review from a team as a code owner February 25, 2025 09:48
@evgeni evgeni added CherryPick PR needs CherryPick to previous branches 6.17.z labels Feb 25, 2025
@@ -216,6 +216,6 @@ def test_positive_run_inventory(module_target_sat, setup_fam, ansible_module):
"""
# Execute test_playbook
result = module_target_sat.execute(
f'cd {FAM_ROOT_DIR} && NO_COLOR=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest-3.11 tests/test_crud.py::test_inventory[{ansible_module}]'
f'cd {FAM_ROOT_DIR} && NO_COLOR=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest-3.12 tests/test_crud.py::test_inventory[{ansible_module}]'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious to know, how and where we install pytest on sat for FAM tests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a fam-test-setup.yml playbook in Tower that does that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.17.z CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants