Skip to content

Make a code check which bans imports of fixtures in tests #30914

Closed
@MarcoGorelli

Description

@MarcoGorelli

xref #30894 (comment)

Example: writing

from pandas.conftest import ALL_EA_INT_DTYPES

in a test file should be disallowed because there exists the fixture any_nullable_int_dtype

Metadata

Metadata

Labels

Code StyleCode style, linting, code_checksTestingpandas testing functions or related to the test suite

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions