Skip to content

Commit 6f8fb46

Browse files
committed
Name changes
1 parent df626d2 commit 6f8fb46

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

integration/tests/posit/connect/test_tags.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def test_tag_children(self):
6363
tagC = self.client.tags.create(name="tagC_children", parent=tagA)
6464
tagD = self.client.tags.create(name="tagD_children", parent=tagC)
6565

66-
assert tagA.children_tags.find() == [tagC]
67-
assert tagB.children_tags.find() == []
68-
assert tagC.children_tags.find() == [tagD]
66+
assert tagA.child_tags.find() == [tagC]
67+
assert tagB.child_tags.find() == []
68+
assert tagC.child_tags.find() == [tagD]
6969

7070
# cleanup
7171
tagA.destroy()

src/posit/connect/tags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ def child_tags(self) -> ChildTags:
5555
client = posit.connect.Client(...)
5656
5757
mytag = client.tags.find(id="TAG_ID_HERE")
58-
children = mytag.children_tags().find()
58+
children = mytag.child_tags.find()
5959
```
6060
"""
61-
return ChildrenTags(self._ctx, self._path, parent_tag=self)
61+
return ChildTags(self._ctx, self._path, parent_tag=self)
6262

6363
@property
6464
def descendant_tags(self) -> DescendantTags:

tests/posit/connect/test_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def test_children(self):
179179

180180
# invoke
181181
tag = client.tags.get("3")
182-
tag_children = tag.children_tags.find()
182+
tag_children = tag.child_tags.find()
183183

184184
# assert
185185
assert mock_get_3_tag.call_count == 1

0 commit comments

Comments
 (0)