Skip to content
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

ini configuration are not found in subdirectories when specifying tests with :: #2148

Closed
pelme opened this issue Dec 20, 2016 · 0 comments · Fixed by #2149
Closed

ini configuration are not found in subdirectories when specifying tests with :: #2148

pelme opened this issue Dec 20, 2016 · 0 comments · Fixed by #2149
Labels
type: bug problem that needs to be addressed

Comments

@pelme
Copy link
Member

pelme commented Dec 20, 2016

When a pytest.ini exists in a subdirectory (i.e. subdir/pytest.ini), it gets picked parsed and used when invoking pytest with pytest subdir rather than using a pytest.ini in the root directory.

However, when specifying a test with double colons (::) on the command line like pytest subdir/test_foo.py::test_foo the subdir/pytest.ini configuration files is not used.

@pelme pelme added the type: bug problem that needs to be addressed label Dec 20, 2016
pelme added a commit to pelme/pytest that referenced this issue Dec 20, 2016
pelme added a commit to pelme/pytest that referenced this issue Dec 20, 2016
pelme added a commit to pelme/pytest that referenced this issue Dec 27, 2016
pelme added a commit to pelme/pytest that referenced this issue Dec 27, 2016
…ains ::.

This commit also improves readbility in get_dirs_from_args by using self
documenting local functions.

get_dirs_from_args also now only returns directories that actually exists,
and not files to avoid confusion.

This commit also removes redundant checks in get_common_ancestor that
was already performed in get_dirs_from_args..
pelme added a commit to pelme/pytest that referenced this issue Dec 27, 2016
…ains ::.

This commit also improves readbility in get_dirs_from_args by using self
documenting local functions.

get_dirs_from_args also now only returns directories that actually exists,
and not files to avoid confusion.

This commit also removes redundant checks in get_common_ancestor that
was already performed in get_dirs_from_args..
pelme added a commit to pelme/pytest that referenced this issue Dec 27, 2016
…ains ::.

This commit also improves readbility in get_dirs_from_args by using self
documenting local functions.

get_dirs_from_args also now only returns directories that actually exists,
and not files to avoid confusion.

This commit also removes redundant checks in get_common_ancestor that
was already performed in get_dirs_from_args..
pelme added a commit to pelme/pytest that referenced this issue Dec 27, 2016
…ains ::.

This commit also improves readbility in get_dirs_from_args by using self
documenting local functions.

get_dirs_from_args also now only returns directories that actually exists,
and not files to avoid confusion.

This commit also removes redundant checks in get_common_ancestor that
was already performed in get_dirs_from_args..
pelme added a commit to pelme/pytest that referenced this issue Dec 27, 2016
…ains ::.

This commit also improves readbility in get_dirs_from_args by using self
documenting local functions.

get_dirs_from_args also now only returns directories that actually exists,
and not files to avoid confusion.

This commit also removes redundant checks in get_common_ancestor that
was already performed in get_dirs_from_args..
pelme added a commit to pelme/pytest that referenced this issue Dec 27, 2016
…ains ::.

This commit also improves readbility in get_dirs_from_args by using self
documenting local functions.

get_dirs_from_args also now only returns directories that actually exists,
and not files to avoid confusion.

This commit also removes redundant checks in get_common_ancestor that
was already performed in get_dirs_from_args..
This was referenced Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant