From 1570b1ac899300aa958f06d3d19d0079b10723a4 Mon Sep 17 00:00:00 2001 From: Maksim Beliaev Date: Fri, 6 Jan 2023 16:43:31 +0100 Subject: [PATCH] rerun pre-commit on blacken docs (#613) * rerun CI on blacken docs * pin black version --- .pre-commit-config.yaml | 2 +- README.rst | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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})