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:
parent
b3de408600
commit
6df03ed3d0
@ -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.
|
||||
|
||||
|
7
releasenotes/notes/fixture-extras-699a5b5fb5bd6aab.yaml
Normal file
7
releasenotes/notes/fixture-extras-699a5b5fb5bd6aab.yaml
Normal 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]`
|
Loading…
x
Reference in New Issue
Block a user