Replies: 2 comments 5 replies
-
Hi @wpietri, See the python_classes configuration value. You might also configure testpaths to point to |
Beta Was this translation helpful? Give feedback.
2 replies
-
Ah, got it. Thanks! Given that the warning message recognizes that the file with the objected-to class is in the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a project where we're building safety tests for LLMs. Inevitably, we have many real domain objects starting with
Test
. They all live in oursrc
folder, so I would like pytest to never discover anything insrc
. After much googling, I have tried a number of things inpyproject.toml
without success. Here's an example project:https://github.com/wpietri/pytest-collection-issue
I should note that I could tag each individual object starting with
__test__ = False
. However, I'd like to solve this problem once and at a high level.I'm sure this must be doable, and would appreciate any suggestions. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions