Skip to content

Commit

Permalink
Use Python 3.12 when calling Pytest (#17680)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored Feb 25, 2025
1 parent fc02e89 commit 9fb897a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/foreman/sys/test_fam.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def test_positive_run_modules_and_roles(module_target_sat, setup_fam, ansible_mo

# Execute test_playbook
result = module_target_sat.execute(
f'NO_COLOR=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 make --directory {FAM_ROOT_DIR} livetest_{ansible_module} PYTHON_COMMAND="python3" PYTEST_COMMAND="pytest-3.11"'
f'NO_COLOR=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 make --directory {FAM_ROOT_DIR} livetest_{ansible_module} PYTHON_COMMAND="python3" PYTEST_COMMAND="pytest-3.12"'
)
assert result.status == 0, f"{result.status=}\n{result.stdout=}\n{result.stderr=}"

Expand All @@ -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}]'
)
assert result.status == 0, f"{result.status=}\n{result.stdout=}\n{result.stderr=}"

0 comments on commit 9fb897a

Please sign in to comment.