Skip to content

Commit 2ad2b3a

Browse files
committed
Update test_tags.py
1 parent 267f58f commit 2ad2b3a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/posit/connect/test_tags.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,10 @@ def test_children(self):
169169
"https://connect.example/__api__/v1/tags/3",
170170
json=load_mock_dict("v1/tags/3.json"),
171171
)
172-
mock_all_tags = responses.get(
172+
mock_parent_3_tags = responses.get(
173173
"https://connect.example/__api__/v1/tags",
174-
json=load_mock_list("v1/tags.json"),
174+
json=load_mock_list("v1/tags?parent_id=3.json"),
175+
match=[matchers.query_param_matcher({"parent_id": "3"})],
175176
)
176177

177178
# setup
@@ -183,7 +184,7 @@ def test_children(self):
183184

184185
# assert
185186
assert mock_get_3_tag.call_count == 1
186-
assert mock_all_tags.call_count == 1
187+
assert mock_parent_3_tags.call_count == 1
187188

188189
assert len(tag_children) == 7
189190

0 commit comments

Comments
 (0)