In https://github.com/pandas-dev/pandas/issues/50378, I found a test which isn't run in CI because its name doesn't start with test
(as required by pytest)
I'm sure there's more
To find them, I think we need some AST which checks files in pandas/tests
, which:
- have names not starting with test
- aren't decorated (else they might be fixtures)
- aren't used anywhere else inside that file (else they might be helper functions)
Comment From: MarcoGorelli
we need to do this for classes too
Comment From: MarcoGorelli
some more examples of tests which don't run (in addition to those posted in other issues)
https://github.com/pandas-dev/pandas/blob/4e4be0bfa8f74b9d453aa4163d95660c04ffea0c/pandas/tests/computation/test_eval.py#L356-L364
https://github.com/pandas-dev/pandas/blob/e38daf0b6fe170772cf6518fec666e2872eb32eb/pandas/tests/io/test_feather.py#L116-L119
so yeah, really need an automated check for this. on it