Skip to content
Myr

Require pytest-mock for the tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

test_requests.py `test_session_close_proxy_clear` uses the `mocker` fixture, which is provided by pytest-mock.

authored by Adam Williamson · committed by Adam Williamson · parent b9d282b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:setup.py+1 added-1 removed
45 unmodified lines
46 'requests.packages.urllib3.packages.backports',47]4849requires = []50test_requirements = ['pytest>=2.8.0', 'pytest-httpbin==0.0.7', 'pytest-cov']50test_requirements = ['pytest>=2.8.0', 'pytest-httpbin==0.0.7', 'pytest-cov', 'pytest-mock']5152with open('requests/__init__.py', 'r') as fd:53 version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',54 fd.read(), re.MULTILINE).group(1)
47 unmodified lines