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/test_gitlab.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/test_gitlab.py')
-rw-r--r-- | tests/unit/test_gitlab.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/test_gitlab.py b/tests/unit/test_gitlab.py index 4d742d3..3826627 100644 --- a/tests/unit/test_gitlab.py +++ b/tests/unit/test_gitlab.py @@ -58,7 +58,7 @@ def resp_page_1(): "headers": headers, "content_type": "application/json", "status": 200, - "match_querystring": True, + "match": [responses.matchers.query_param_matcher({})], } @@ -81,7 +81,6 @@ def resp_page_2(): "content_type": "application/json", "status": 200, "match": [responses.matchers.query_param_matcher(params)], - "match_querystring": False, } |