Provide fixture extras for pip

Allow installing the additional requirements for using the fixture
contrib module using pip extras.

Closes-Bug: #1501665
Change-Id: I20510d8db35c3cfdc0bc2892675b04d224027c7e
This commit is contained in:
Jamie Lennox 2016-08-25 11:42:52 +10:00
parent b3de408600
commit 6df03ed3d0
3 changed files with 17 additions and 2 deletions

View File

@ -4,8 +4,12 @@ Fixtures
`Fixtures`_ provide a way to create reusable state and helper methods in test cases.
To use the *requests-mock* fixture your tests need to have a dependency on the `fixtures`_ library and the `mock`_ library.
These are not provided by *requests-mock*.
To use the *requests-mock* fixture your tests need to have a dependency on the `fixtures`_ library.
This can be optionally installed when you install *requests-mock* by doing:
.. code:: shell
pip install requests-mock[fixture]
The fixture mocks the :py:meth:`requests.Session.get_adapter` method so that all requests will be served by the mock adapter.

View File

@ -0,0 +1,7 @@
---
prelude: >
Installing the requirements for the 'fixture' contrib package can now be
done via pip with `pip install requests-mock[fixture]`
features:
Added 'fixture' to pip extras so you can install the fixture requirements
with `pip install requests-mock[fixture]`

View File

@ -26,3 +26,7 @@ packages = requests_mock
[wheel]
universal = 1
[extras]
fixture =
fixtures