Small formatting fixes to nose.rst
This commit is contained in:
parent
639c592f31
commit
5462697924
|
@ -47,16 +47,16 @@ Unsupported idioms / known issues
|
||||||
``tests.test_mod``) but different file system paths
|
``tests.test_mod``) but different file system paths
|
||||||
(e.g. ``tests/test_mode.py`` and ``other/tests/test_mode.py``)
|
(e.g. ``tests/test_mode.py`` and ``other/tests/test_mode.py``)
|
||||||
by extending sys.path/import semantics. pytest does not do that
|
by extending sys.path/import semantics. pytest does not do that
|
||||||
but there is discussion in `issue268 <https://github.com/pytest-dev/pytest/issues/268>`_ for adding some support. Note that
|
but there is discussion in `#268 <https://github.com/pytest-dev/pytest/issues/268>`_ for adding some support. Note that
|
||||||
`nose2 choose to avoid this sys.path/import hackery <https://nose2.readthedocs.io/en/latest/differences.html#test-discovery-and-loading>`_.
|
`nose2 choose to avoid this sys.path/import hackery <https://nose2.readthedocs.io/en/latest/differences.html#test-discovery-and-loading>`_.
|
||||||
|
|
||||||
If you place a conftest.py file in the root directory of your project
|
If you place a conftest.py file in the root directory of your project
|
||||||
(as determined by pytest) pytest will run tests "nose style" against
|
(as determined by pytest) pytest will run tests "nose style" against
|
||||||
the code below that directory by adding it to your sys.path instead of
|
the code below that directory by adding it to your ``sys.path`` instead of
|
||||||
running against your installed code.
|
running against your installed code.
|
||||||
|
|
||||||
You may find yourself wanting to do this if you ran `python setup.py install`
|
You may find yourself wanting to do this if you ran ``python setup.py install``
|
||||||
to set up your project, as opposed to `python setup.py develop` or any of
|
to set up your project, as opposed to ``python setup.py develop`` or any of
|
||||||
the package manager equivalents. Installing with develop in a
|
the package manager equivalents. Installing with develop in a
|
||||||
virtual environment like Tox is recommended over this pattern.
|
virtual environment like Tox is recommended over this pattern.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue