Skip to content

Commit e691762

Browse files
fix: functional project service test
The PR: #1462 was not able to merge due to a change in the latest version of Gitlab. More details here: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/61646 Update the functional test to first create the project service before doing a get.
1 parent d3fac50 commit e691762

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/functional/api/test_projects.py

+5
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,12 @@ def test_project_remote_mirrors(project):
213213

214214

215215
def test_project_services(project):
216+
# Use 'update' to create a service as we don't have a 'create' method and
217+
# to add one is somewhat complicated so it hasn't been done yet.
218+
project.services.update("asana", api_key="foo")
219+
216220
service = project.services.get("asana")
221+
assert service.active is True
217222
service.api_key = "whatever"
218223
service.save()
219224

0 commit comments

Comments
 (0)