From 2ba66034363202b43b7d2f07ae14be0ebefcb9d6 Mon Sep 17 00:00:00 2001 From: jessicamack Date: Wed, 7 May 2025 11:00:44 -0400 Subject: [PATCH] Convert skip tests to xfail (#15511) --- awx/main/tests/functional/test_python_requirements.py | 2 +- awx/main/tests/functional/test_routing.py | 2 +- awx/main/tests/unit/scheduler/test_dag_workflow.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/main/tests/functional/test_python_requirements.py b/awx/main/tests/functional/test_python_requirements.py index 577c7ee5bb..d6d486091a 100644 --- a/awx/main/tests/functional/test_python_requirements.py +++ b/awx/main/tests/functional/test_python_requirements.py @@ -36,7 +36,7 @@ def test_bootstrap_consistent(): assert not different_requirements -@pytest.mark.skip(reason="This test needs some love") +@pytest.mark.xfail(reason="This test needs some love") def test_env_matches_requirements_txt(): from pip.operations import freeze diff --git a/awx/main/tests/functional/test_routing.py b/awx/main/tests/functional/test_routing.py index a9d758da2b..7cb5e9b587 100644 --- a/awx/main/tests/functional/test_routing.py +++ b/awx/main/tests/functional/test_routing.py @@ -74,7 +74,7 @@ class TestWebsocketEventConsumer: connected, _ = await server.connect() assert connected is False, "Anonymous user should NOT be allowed to login." - @pytest.mark.skip(reason="Ran out of coding time.") + @pytest.mark.xfail(reason="Ran out of coding time.") async def test_authorized(self, websocket_server_generator, application, admin): server = websocket_server_generator('/websocket/') diff --git a/awx/main/tests/unit/scheduler/test_dag_workflow.py b/awx/main/tests/unit/scheduler/test_dag_workflow.py index a3225b76a3..1741d374da 100644 --- a/awx/main/tests/unit/scheduler/test_dag_workflow.py +++ b/awx/main/tests/unit/scheduler/test_dag_workflow.py @@ -561,7 +561,7 @@ class TestBFSNodesToRun: assert set([nodes[1], nodes[2]]) == set(g.bfs_nodes_to_run()) -@pytest.mark.skip(reason="Run manually to re-generate doc images") +@pytest.mark.xfail(reason="Run manually to re-generate doc images") class TestDocsExample: @pytest.fixture def complex_dag(self, wf_node_generator):