Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcf0049b

Browse files
chore: debugging...
1 parent617a025 commitcf0049b

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
deftest_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
assertlen(labels)==1
146151

147152
label=project.labels.get("label")
148153
assertlabel==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
assertlabel.name=="labelupdated"
@@ -160,6 +168,8 @@ def test_project_labels(project):
160168
label.delete()
161169
assertlen(project.labels.list())==0
162170

171+
assert"1"isNone
172+
163173

164174
deftest_project_label_promotion(gl,group):
165175
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp