Skip to content

Commit

Permalink
Bump responses from 0.21.0 to 0.22.0 (#682)
Browse files Browse the repository at this point in the history
* Bump responses from 0.21.0 to 0.22.0

Bumps [responses](https://github.com/getsentry/responses) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/getsentry/responses/releases)
- [Changelog](https://github.com/getsentry/responses/blob/master/CHANGES)
- [Commits](getsentry/responses@0.21.0...0.22.0)

---
updated-dependencies:
- dependency-name: responses
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix mypy union-attr error

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fmrsabino <[email protected]>
  • Loading branch information
dependabot[bot] and fmrsabino authored Oct 20, 2022
1 parent 12711af commit b587846
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ flake8==5.0.4
isort==5.10.1
pre-commit==2.20.0
pytest-django==4.5.2
responses==0.21.0
responses==0.22.0

# mypy and PEP 561 stubs
mypy==0.982
Expand Down
4 changes: 4 additions & 0 deletions src/chains/tests/test_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def test_on_chain_update_hook_200(self) -> None:
ChainFactory.create()

assert len(responses.calls) == 1
assert isinstance(responses.calls[0], responses.Call)
assert responses.calls[0].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[0].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand Down Expand Up @@ -133,6 +134,7 @@ def test_on_feature_create_hook_call(self) -> None:
Feature(key="Test Feature").save()

assert len(responses.calls) == 1
assert isinstance(responses.calls[0], responses.Call)
assert responses.calls[0].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[0].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand Down Expand Up @@ -184,6 +186,7 @@ def test_on_wallet_create_hook_call(self) -> None:
Wallet(key="Test Wallet").save()

assert len(responses.calls) == 1
assert isinstance(responses.calls[0], responses.Call)
assert responses.calls[0].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[0].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand Down Expand Up @@ -240,6 +243,7 @@ def test_on_gas_price_create_hook_call(self) -> None:
GasPriceFactory.create(chain=self.chain)

assert len(responses.calls) == 1
assert isinstance(responses.calls[0], responses.Call)
assert responses.calls[0].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[0].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand Down
9 changes: 9 additions & 0 deletions src/safe_apps/tests/test_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def test_on_safe_app_create_hook_call(self) -> None:
SafeApp(app_id=1, chain_ids=[1]).save()

assert len(responses.calls) == 1
assert isinstance(responses.calls[0], responses.Call)
assert responses.calls[0].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[0].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand Down Expand Up @@ -54,6 +55,7 @@ def test_on_safe_app_update_hook_call(self) -> None:
safe_app.save() # update

assert len(responses.calls) == 2
assert isinstance(responses.calls[1], responses.Call)
assert responses.calls[1].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[1].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand All @@ -80,6 +82,7 @@ def test_on_safe_app_delete_hook_call(self) -> None:
safe_app.delete() # delete

assert len(responses.calls) == 2
assert isinstance(responses.calls[1], responses.Call)
assert responses.calls[1].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[1].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand Down Expand Up @@ -110,6 +113,7 @@ def test_on_provider_create_hook_call(self) -> None:
ProviderFactory.create()

assert len(responses.calls) == 1
assert isinstance(responses.calls[0], responses.Call)
assert responses.calls[0].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[0].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand All @@ -136,6 +140,7 @@ def test_on_provider_update_hook_call(self) -> None:
provider.save() # update

assert len(responses.calls) == 2
assert isinstance(responses.calls[1], responses.Call)
assert responses.calls[1].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[1].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand All @@ -161,6 +166,7 @@ def test_on_provider_delete_hook_call(self) -> None:
provider.delete() # delete

assert len(responses.calls) == 2
assert isinstance(responses.calls[1], responses.Call)
assert responses.calls[1].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[1].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand Down Expand Up @@ -191,6 +197,7 @@ def test_on_tag_create_hook_call(self) -> None:
Tag().save() # create

assert len(responses.calls) == 1
assert isinstance(responses.calls[0], responses.Call)
assert responses.calls[0].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[0].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand Down Expand Up @@ -218,6 +225,7 @@ def test_on_tag_update_hook_call(self) -> None:
tag.save() # update

assert len(responses.calls) == 2
assert isinstance(responses.calls[1], responses.Call)
assert responses.calls[1].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[1].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand All @@ -244,6 +252,7 @@ def test_on_tag_delete_hook_call(self) -> None:
tag.delete() # delete

assert len(responses.calls) == 2
assert isinstance(responses.calls[1], responses.Call)
assert responses.calls[1].request.body == b'{"invalidate": "Chains"}'
assert responses.calls[1].request.url == "http://127.0.0.1/v2/flush"
assert (
Expand Down

0 comments on commit b587846

Please sign in to comment.