| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3601,7 +3601,7 @@ def save(self, **kwargs): | |||
| 3601 | 3601 | ||
| 3602 | 3602 | ||
| 3603 | 3603 | class ProjectLabelManager( | |
| 3604 | - ListMixin, CreateMixin, UpdateMixin, DeleteMixin, RESTManager | ||
| 3604 | + RetrieveMixin, CreateMixin, UpdateMixin, DeleteMixin, RESTManager | ||
| 3605 | 3605 | ): | |
| 3606 | 3606 | _path = "/projects/%(project_id)s/labels" | |
| 3607 | 3607 | _obj_cls = ProjectLabel | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -139,8 +139,11 @@ def test_project_housekeeping(project): | |||
| 139 | 139 | ||
| 140 | 140 | def test_project_labels(project): | |
| 141 | 141 | label = project.labels.create({"name": "label", "color": "#778899"}) | |
| 142 | - label = project.labels.list()[0] | ||
| 143 | - assert len(project.labels.list()) == 1 | ||
| 142 | + labels = project.labels.list() | ||
| 143 | + assert len(labels) == 1 | ||
| 144 | + | ||
| 145 | + label = project.labels.get("label") | ||
| 146 | + assert label == labels[0] | ||
| 144 | 147 | ||
| 145 | 148 | label.new_name = "labelupdated" | |
| 146 | 149 | label.save() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments