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

Whitelist py.test in tox tests #802

Conversation

danielmitterdorfer
Copy link
Member

When a binary is not installed via tox, it will emit the following
warning:

WARNING: test command found but not installed in testenv
  cmd: /Users/daniel/Projects/rally/.venv/bin/py.test
  env: /Users/daniel/Projects/rally/.tox/py37
Maybe you forgot to specify a dependency? See also the
whitelist_externals envconfig setting.

DEPRECATION WARNING: this will be an error in tox 4 and above!

With this commit we exclude py.test from this check by specifying it
in whitelist_externals. This is ok since we ensure that this binary is
installed via our configuration in setup.py and thus we can avoid this
warning.

When a binary is not installed via tox, it will emit the following
warning:

```
WARNING: test command found but not installed in testenv
  cmd: /Users/daniel/Projects/rally/.venv/bin/py.test
  env: /Users/daniel/Projects/rally/.tox/py37
Maybe you forgot to specify a dependency? See also the
whitelist_externals envconfig setting.

DEPRECATION WARNING: this will be an error in tox 4 and above!
```

With this commit we exclude `py.test` from this check by specifying it
in `whitelist_externals`. This is ok since we ensure that this binary is
installed via our configuration in `setup.py` and thus we can avoid this
warning.
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :misc Changes that don't affect users directly: linter fixes, test improvements, etc. labels Oct 22, 2019
@danielmitterdorfer danielmitterdorfer added this to the 1.4.0 milestone Oct 22, 2019
@danielmitterdorfer danielmitterdorfer self-assigned this Oct 22, 2019
Copy link
Contributor

@drawlerr drawlerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danielmitterdorfer danielmitterdorfer merged commit cf0d16f into elastic:master Oct 28, 2019
@danielmitterdorfer
Copy link
Member Author

Thanks for the review! :)

@danielmitterdorfer danielmitterdorfer deleted the whitelist-test-cmd-in-tox branch October 28, 2019 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :misc Changes that don't affect users directly: linter fixes, test improvements, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants