[Pytest-commit] commit/tox: hpk42: small updates to tox/pytest section
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Dec 10 15:58:59 CET 2013
1 new commit in tox:
https://bitbucket.org/hpk42/tox/commits/cec6988e5dbd/
Changeset: cec6988e5dbd
User: hpk42
Date: 2013-12-10 15:57:30
Summary: small updates to tox/pytest section
Affected #: 1 file
diff -r d67bd930dc6962861a361c220c665d22096d9af8 -r cec6988e5dbd7b63bd61fd50394a7f8c007450f2 doc/example/pytest.txt
--- a/doc/example/pytest.txt
+++ b/doc/example/pytest.txt
@@ -23,7 +23,7 @@
deps=pytest # PYPI package providing py.test
commands=
py.test \
- [] # substitute with tox' positional arguments
+ {posargs} # substitute with tox' positional arguments
you can now invoke ``tox`` in the directory where your ``tox.ini`` resides.
``tox`` will sdist-package your project, create two virtualenv environments
@@ -49,7 +49,7 @@
commands=
py.test \
--basetemp={envtmpdir} \ # py.test tempdir setting
- [] # substitute with tox' positional arguments
+ {posargs} # substitute with tox' positional arguments
you can invoke ``tox`` in the directory where your ``tox.ini`` resides.
Differently than in the previous example the ``py.test`` command
@@ -73,7 +73,7 @@
--basetemp={envtmpdir} \
--confcutdir=.. \
-n 3 \ # use three sub processes
- []
+ {posargs}
.. _`listed as a known issue`:
@@ -99,16 +99,13 @@
files are outside the import path, then pass ``--pyargs mypkg`` to
pytest.
-Installed tests are particularly convenient when combined with
-`Distribute's 2to3 support` (``use_2to3``).
-
-With tests that won't be installed, the simplest way is to avoid
-``__init__.py`` files in test directories; pytest will still find them
-but they won't be copied to other places or be found by Python's import
-system.
+With tests that won't be installed, the simplest way to run them
+against your installed package is to avoid ``__init__.py`` files in test
+directories; pytest will still find and import them by adding their
+parent directory to ``sys.path`` but they won't be copied to
+other places or be found by Python's import system outside of pytest.
.. _`fully qualified name`: http://pytest.org/latest/goodpractises.html#package-name
-.. _`Distribute's 2to3 support`: http://packages.python.org/distribute/python3.html
.. include:: ../links.txt
Repository URL: https://bitbucket.org/hpk42/tox/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the pytest-commit
mailing list