We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1acab7 + d8b52a2 commit f46b7b2Copy full SHA for f46b7b2
src/py_pglite/pytest_plugin.py
@@ -67,7 +67,7 @@ def pytest_configure(config: pytest.Config) -> None:
67
def _should_disable_django_plugin(config: pytest.Config) -> bool:
68
"""Determine if Django plugin should be disabled for better isolation."""
69
# Check if we're running pure SQLAlchemy tests
70
- test_paths = getattr(config.option, "file_or_dir", [])
+ test_paths = getattr(config.option, "file_or_dir", []) or []
71
if any(
72
"sqlalchemy" in str(path) and "django" not in str(path) for path in test_paths
73
):
0 commit comments