diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 20e05358..de096b43 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,4 +29,4 @@ repos: rev: v1.12.1 hooks: - id: blacken-docs - additional_dependencies: [ black ] + additional_dependencies: [ black == 23.1a1 ] diff --git a/README.rst b/README.rst index 0e4eec56..2a693d5f 100644 --- a/README.rst +++ b/README.rst @@ -760,6 +760,7 @@ Example that shows how to set custom registry print("Before tests:", responses.mock.get_registry()) """ Before tests: """ + # using function decorator @responses.activate(registry=CustomRegistry) def run(): @@ -1026,7 +1027,6 @@ to check how many times each request was matched. @responses.activate def test_call_count_with_matcher(): - rsp = responses.get( "http://www.example.com", match=(matchers.query_param_matcher({}),), @@ -1310,7 +1310,6 @@ replaced. @responses.activate def test_replace(): - responses.get("http://example.org", json={"data": 1}) responses.replace(responses.GET, "http://example.org", json={"data": 2})