Skip to content

Pytest not detecting local .ini file when running specific part of test #2723

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
KayaLukenIncapptic opened this issue Aug 27, 2017 · 2 comments
Labels
status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity

Comments

@KayaLukenIncapptic
Copy link

root/
.ini
root/sub
.ini
root/sub/tests/
test_this.py

Detects root .ini, but not local when I specify exact test case to run in subfolder:
pytest sub/tests/test_this.py::TestCase

If I just run subfolder
pytest sub/tests/test_this.py
it detects local .ini.

I dont think this is good behaviour. Why doesnt pytest walk back up to local subfolder and find local .ini when I run specific test case?

@nicoddemus nicoddemus added the status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity label Sep 28, 2017
@nicoddemus
Copy link
Member

Thanks @KayaLukenIncapptic

I'm not sure I understand the problem question, could you please add more information? Thanks!

@nicoddemus
Copy link
Member

Closing for now; we will be happy to re-open this once we get more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs information reporter needs to provide more information; can be closed after 2 or more weeks of inactivity
Projects
None yet
Development

No branches or pull requests

2 participants