Skip to content

Commit

Permalink
change py.test references to pytest
Browse files Browse the repository at this point in the history
as of 3.0, pytest is the preferred binary
See: https://docs.pytest.org/en/latest/changelog.html#id1033
> "Introduce pytest command as recommended entry point."
  • Loading branch information
fuhrysteve committed Jan 23, 2020
1 parent c74dd59 commit 4c9013c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pytest-repeat
===================

pytest-repeat is a plugin for `py.test <https://docs.pytest.org>`_ that makes it
pytest-repeat is a plugin for `pytest <https://docs.pytest.org>`_ that makes it
easy to repeat a single test, or multiple tests, a specific number of times.

.. image:: https://img.shields.io/badge/license-MPL%202.0-blue.svg
Expand All @@ -26,7 +26,7 @@ Requirements
You will need the following prerequisites in order to use pytest-repeat:

- Python 2.7, 3.4+ or PyPy
- py.test 2.8 or newer
- pytest 2.8 or newer

Installation
------------
Expand All @@ -44,9 +44,9 @@ your test, or tests, to be run:

.. code-block:: bash
$ py.test --count=10 test_file.py
$ pytest --count=10 test_file.py
Each test collected by py.test will be run :code:`count` times.
Each test collected by pytest will be run :code:`count` times.

If you want to mark a test in your code to be repeated a number of times, you
can use the :code:`@pytest.mark.repeat(count)` decorator:
Expand Down Expand Up @@ -78,7 +78,7 @@ For example:

.. code-block:: bash
$ py.test --count=1000 -x test_file.py
$ pytest --count=1000 -x test_file.py
This will attempt to run test_file.py 1000 times, but will stop as soon as a failure
occurs.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
setup_requires=['setuptools_scm'],
install_requires=['pytest>=3.6'],
license='Mozilla Public License 2.0 (MPL 2.0)',
keywords='py.test pytest repeat',
keywords='pytest pytest repeat',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Pytest',
Expand Down

0 comments on commit 4c9013c

Please sign in to comment.