Skip to content

Commit 3928822

Browse files
committed
test(filters): also skip MySQL in relationship filter tests
MySQL (asyncmy) has the same schema isolation issues with xdist groups as Oracle, causing "table doesn't exist" errors.
1 parent 9c85f21 commit 3928822

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/integration/conftest.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,14 +904,16 @@ async def async_session(
904904

905905

906906
def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item]) -> None:
907-
"""Skip relationship filter tests for Spanner and Oracle engines.
907+
"""Skip relationship filter tests for engines with schema isolation issues.
908908
909-
These engines have issues with the UUID test models:
909+
These engines have issues with the UUID test models in xdist groups:
910910
- Spanner: Doesn't support direct UNIQUE constraints (used by Tag model)
911911
- Oracle: Has schema isolation issues with xdist groups
912+
- MySQL (asyncmy): Has schema isolation issues with xdist groups
912913
"""
913914
skip_spanner = pytest.mark.skip(reason="Spanner doesn't support direct UNIQUE constraints")
914915
skip_oracle = pytest.mark.skip(reason="Oracle has schema isolation issues with relationship filter tests")
916+
skip_mysql = pytest.mark.skip(reason="MySQL has schema isolation issues with relationship filter tests")
915917

916918
for item in items:
917919
# Only process items from test_relationship_filters.py
@@ -925,3 +927,7 @@ def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item
925927
# Check for Oracle engine
926928
if "oracle" in item.nodeid.lower():
927929
item.add_marker(skip_oracle)
930+
931+
# Check for MySQL engine (asyncmy)
932+
if "asyncmy" in item.nodeid.lower() or "mysql" in item.nodeid.lower():
933+
item.add_marker(skip_mysql)

0 commit comments

Comments
 (0)