Debian Codegraph @

tests/conftest.py

raw
1 import pytest
2 import responses as resp_module
3
4
5 @pytest.fixture
6 def responses(request):
7 """
8 Set up the `responses` module for mocking HTTP requests
9
10 https://github.com/getsentry/responses
11 """
12 resp_module.start()
13
14 def done():
15 resp_module.stop()
16 resp_module.reset()
17
18 request.addfinalizer(done)