We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 267f58f commit 2ad2b3aCopy full SHA for 2ad2b3a
tests/posit/connect/test_tags.py
@@ -169,9 +169,10 @@ def test_children(self):
169
"https://connect.example/__api__/v1/tags/3",
170
json=load_mock_dict("v1/tags/3.json"),
171
)
172
- mock_all_tags = responses.get(
+ mock_parent_3_tags = responses.get(
173
"https://connect.example/__api__/v1/tags",
174
- json=load_mock_list("v1/tags.json"),
+ json=load_mock_list("v1/tags?parent_id=3.json"),
175
+ match=[matchers.query_param_matcher({"parent_id": "3"})],
176
177
178
# setup
@@ -183,7 +184,7 @@ def test_children(self):
183
184
185
# assert
186
assert mock_get_3_tag.call_count == 1
- assert mock_all_tags.call_count == 1
187
+ assert mock_parent_3_tags.call_count == 1
188
189
assert len(tag_children) == 7
190
0 commit comments