Skip to content

Commit

Permalink
Whitelist py.test in tox tests
Browse files Browse the repository at this point in the history
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.

Relates #802
  • Loading branch information
danielmitterdorfer authored Oct 28, 2019
1 parent f575790 commit cf0d16f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ commands =
py.test --junitxml=junit-{envname}.xml
./integration-test.sh

whitelist_externals =
py.test

[testenv:docs]
basepython=python
changedir=docs
Expand Down

0 comments on commit cf0d16f

Please sign in to comment.