You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pytest.fixture(autouse=True)deffoo(request: pytest.FixtureRequest) ->None:
print("this runs")
@pytest.fixture(autouse=True)def_foo(request: pytest.FixtureRequest) ->None:
print("this does not run")
This causes ruff's PT004 to emit false positives. Let me know if this is intended behavior (though I didn't find documentation of that fact) and I'll send the bug over to ruff.
The text was updated successfully, but these errors were encountered:
Ah yeah, this is PEBKAC. My fixtures are shared between packages and glob imported into each package's conftest.py -- and underscored fixtures aren't being imported.
Very simple:
This causes ruff's PT004 to emit false positives. Let me know if this is intended behavior (though I didn't find documentation of that fact) and I'll send the bug over to ruff.
The text was updated successfully, but these errors were encountered: