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 1a14395 commit a41af90Copy full SHA for a41af90
tools/functional/api/test_projects.py
@@ -139,8 +139,11 @@ def test_project_housekeeping(project):
139
140
def test_project_labels(project):
141
label = project.labels.create({"name": "label", "color": "#778899"})
142
- label = project.labels.list()[0]
143
- assert len(project.labels.list()) == 1
+ labels = project.labels.list()
+ assert len(labels) == 1
144
+
145
+ label = project.labels.get("label")
146
+ assert label == labels[0]
147
148
label.new_name = "labelupdated"
149
label.save()
0 commit comments