Skip to content

conftest undocumented #1176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
avdd opened this issue Nov 11, 2015 · 3 comments
Closed

conftest undocumented #1176

avdd opened this issue Nov 11, 2015 · 3 comments

Comments

@avdd
Copy link

avdd commented Nov 11, 2015

Do you ever read the documentation for some software that goes like this:

... to do this, use <feature of software> ...

and you go "oh, I want to learn about that feature", but you can't find it documented anywhere?

conftest.py is that feature.

@The-Compiler
Copy link
Member

I don't follow.

I searched for "conftest" in the docs and found this as the first three matches:

  • Installing and Using plugins - talks about loading plugins from conftest.py, not what we want.
  • Writing plugins - Tells us conftest.py are local, per-directory pytest plugins, and shows an example of how to define a hook in one.
  • fixtures - Tells us we can put fixtures in conftest.py to share them across several test files.

So I'm not sure what you're missing?

@nicoddemus
Copy link
Member

Agree with @The-Compiler... @avdd could you please be more specific?

@nicoddemus
Copy link
Member

@avdd feel free to reopen this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants