Skip to content

Commit

Permalink
Doc'd tox to pytest arg forwarding (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpic authored and carltongibson committed Feb 7, 2019
1 parent 8499a42 commit 6f8bf16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ Also, there is a tox.ini file at the root of the repository. Example commands::
# run the test with Python 3.7, on Django 2.2 and Django master branch
$ tox -e py37-dj21 && tox -e py37-djmaster

Note that tox can also forward arguments to pytest. When using pdb with pytest,
forward the ``-s`` option to pytest as such::

tox -e py37-dj21 -- -s

Can you pay me for my time?
---------------------------
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ usedevelop = true
commands =
pip install -e {toxinidir}[tests]
pip freeze
py.test -v
py.test -v {posargs}

deps =
dj11: Django>=1.11,<2.0
Expand Down

0 comments on commit 6f8bf16

Please sign in to comment.