Skip to content

Commit cf0049b

Browse files
chore: debugging...
1 parent 617a025 commit cf0049b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

gitlab/v4/objects/labels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ProjectLabel(
102102
PromoteMixin, SubscribableMixin, SaveMixin, ObjectDeleteMixin, RESTObject
103103
):
104104
_id_attr = "name"
105-
manager: "ProjectLabelManager"
105+
# manager: "ProjectLabelManager"
106106

107107
# Update without ID, but we need an ID to get from list.
108108
@exc.on_http_error(exc.GitlabUpdateError)

tests/functional/api/test_projects.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,21 @@ def test_project_housekeeping(project):
140140

141141

142142
def test_project_labels(project):
143+
print("JLV: project.id:", project.id)
144+
print("JLV: project.labels:", project.labels)
143145
label = project.labels.create({"name": "label", "color": "#778899"})
146+
print("JLV: type(label):", type(label))
147+
print("JLV: label.manager._computed_path:", label.manager._computed_path)
148+
print("JLV: label.manager._parent:", label.manager._parent)
144149
labels = project.labels.list()
145150
assert len(labels) == 1
146151

147152
label = project.labels.get("label")
148153
assert label == labels[0]
149154

155+
print("JLV: type(label):", type(label))
156+
print("JLV: label.manager._computed_path:", label.manager._computed_path)
157+
print("JLV: label.manager._parent:", label.manager._parent)
150158
label.new_name = "labelupdated"
151159
label.save()
152160
assert label.name == "labelupdated"
@@ -160,6 +168,8 @@ def test_project_labels(project):
160168
label.delete()
161169
assert len(project.labels.list()) == 0
162170

171+
assert "1" is None
172+
163173

164174
def test_project_label_promotion(gl, group):
165175
"""

0 commit comments

Comments
 (0)