diff options
author | John L. Villalovos <john@sodarock.com> | 2022-01-16 11:51:09 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-01-16 11:51:09 -0800 |
commit | d16e41bda2c355077cbdc419fe2e1d994fdea403 (patch) | |
tree | 2fc3d719fdfd81b87f6dbfe124e6a4e8d69245ff /tests/unit/mixins/test_mixin_methods.py | |
parent | 5254f193dc29d8854952aada19a72e5b4fc7ced0 (diff) | |
download | gitlab-jlvillal/rm_httmock.tar.gz |
test: convert usage of `match_querystring` to `match`jlvillal/rm_httmock
In the `responses` library the usage of `match_querystring` is
deprecated. Convert to using `match`
Diffstat (limited to 'tests/unit/mixins/test_mixin_methods.py')
-rw-r--r-- | tests/unit/mixins/test_mixin_methods.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/unit/mixins/test_mixin_methods.py b/tests/unit/mixins/test_mixin_methods.py index 6ccda40..06cc322 100644 --- a/tests/unit/mixins/test_mixin_methods.py +++ b/tests/unit/mixins/test_mixin_methods.py @@ -35,7 +35,7 @@ def test_get_mixin(gl): url=url, json={"id": 42, "foo": "bar"}, status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = M(gl) @@ -57,7 +57,7 @@ def test_refresh_mixin(gl): url=url, json={"id": 42, "foo": "bar"}, status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = FakeManager(gl) @@ -80,7 +80,7 @@ def test_get_without_id_mixin(gl): url=url, json={"foo": "bar"}, status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = M(gl) @@ -102,7 +102,7 @@ def test_list_mixin(gl): url=url, json=[{"id": 42, "foo": "bar"}, {"id": 43, "foo": "baz"}], status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) # test RESTObjectList @@ -134,7 +134,7 @@ def test_list_other_url(gl): url=url, json=[{"id": 42, "foo": "bar"}], status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = M(gl) @@ -177,7 +177,7 @@ def test_create_mixin(gl): url=url, json={"id": 42, "foo": "bar"}, status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = M(gl) @@ -202,7 +202,7 @@ def test_create_mixin_custom_path(gl): url=url, json={"id": 42, "foo": "bar"}, status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = M(gl) @@ -243,7 +243,7 @@ def test_update_mixin(gl): url=url, json={"id": 42, "foo": "baz"}, status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = M(gl) @@ -268,7 +268,7 @@ def test_update_mixin_no_id(gl): url=url, json={"foo": "baz"}, status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = M(gl) @@ -289,7 +289,7 @@ def test_delete_mixin(gl): url=url, json="", status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = M(gl) @@ -311,7 +311,7 @@ def test_save_mixin(gl): url=url, json={"id": 42, "foo": "baz"}, status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = M(gl) @@ -334,7 +334,7 @@ def test_set_mixin(gl): url=url, json={"key": "foo", "value": "bar"}, status=200, - match_querystring=True, + match=[responses.matchers.query_param_matcher({})], ) mgr = M(gl) |