Skip to content

Commit

Permalink
feat(tests): test label getter
Browse files Browse the repository at this point in the history
  • Loading branch information
ePirat committed Jan 10, 2021
1 parent 1a14395 commit a41af90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/functional/api/test_projects.py
Expand Up @@ -139,8 +139,11 @@ def test_project_housekeeping(project):

def test_project_labels(project):
label = project.labels.create({"name": "label", "color": "#778899"})
label = project.labels.list()[0]
assert len(project.labels.list()) == 1
labels = project.labels.list()
assert len(labels) == 1

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

label.new_name = "labelupdated"
label.save()
Expand Down

0 comments on commit a41af90

Please sign in to comment.