Skip to content

Commit

Permalink
test(conftest): temporary workaround for respx and httpx incompatibility
Browse files Browse the repository at this point in the history
skip these async tests
  • Loading branch information
atomiechen committed Dec 17, 2024
1 parent 336ea82 commit 3a42f7b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import pytest


def pytest_collection_modifyitems(config, items):
# enumerate all test items
for item in items:
# TODO: temporary workaround for respx and httpx compatibility issue
# if the test item is asynchronous (marked with @pytest.mark.async)
if "asyncio" in item.keywords:
# skip these tests
item.add_marker(
pytest.mark.skip(
reason="Skipping due to respx and httpx compatibility issue"
)
)

0 comments on commit 3a42f7b

Please sign in to comment.