Update README.rst
This commit is contained in:
14
README.rst
14
README.rst
@@ -156,28 +156,26 @@ How do I run the repository code directly?
|
|||||||
$ python3 -m rtv
|
$ python3 -m rtv
|
||||||
|
|
||||||
How do I run the tests?
|
How do I run the tests?
|
||||||
This project uses `pytest <http://pytest.org/>`_ and `VCR.py <https://vcrpy.readthedocs.org/>`
|
This project uses `pytest <http://pytest.org/>`_ and `VCR.py <https://vcrpy.readthedocs.org/>`_
|
||||||
to facilitate testing. The pip release for VCR.py is out of date, so you must
|
to facilitate testing.
|
||||||
install directly from git.
|
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ pip3 install pytest
|
$ pip3 install pytest
|
||||||
|
# The pip release for VCR.py is out-of-date
|
||||||
$ pip3 install git+https://github.com/kevin1024/vcrpy.git
|
$ pip3 install git+https://github.com/kevin1024/vcrpy.git
|
||||||
|
|
||||||
Then set PYTHONPATH to the root of the project and unlease pytest!
|
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ cd ~/rtv_project
|
$ cd ~/rtv_project
|
||||||
$ # Run the full suite
|
$ # Run the full suite
|
||||||
$ PYTHONPATH=. py.test
|
$ PYTHONPATH=. py.test
|
||||||
$ # Or run a single test
|
$ # or run a single test
|
||||||
$ PYTHONPATH=. py.test tests/test_config.py::test_copy_default_config
|
$ PYTHONPATH=. py.test tests/test_config.py::test_copy_default_config
|
||||||
|
|
||||||
VCR.py will record HTTP requests made during the test run and store
|
VCR.py will record HTTP requests made during the test run and store
|
||||||
them in *tests/cassettes/*. By default these cassettes are read-only.
|
them in *tests/cassettes/*. By default these cassettes are read-only,
|
||||||
In order to record new cassettes you must provide your own refresh token.
|
if you would like to record new cassettes you must provide your own refresh token.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user