Skip to content

Getting pytest to ignore Test* classes in the source folder? #12748

Answered by sezanzeb
wpietri asked this question in Q&A
Discussion options

You must be logged in to vote

For future readers: This got implemented, you can configure it in pytest.ini like this:

[pytest]
collect_imported_tests = false

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@wpietri
Comment options

@nicoddemus
Comment options

Comment options

You must be logged in to vote
3 replies
@nicoddemus
Comment options

@wpietri
Comment options

@wpietri
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nicoddemus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants