Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerskk committed Apr 23, 2024
1 parent 05ce0f0 commit 4f9ea1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/gitlab/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,14 @@ def get_groups_with_access_to_project(self, project_id):
return []

def get_group_members(self, group_id):
url = f"{self.api_url}{self.api_path}/groups/{group_id}/members"
url = f'{self.api_url}{self.api_path}/groups/{group_id}/members'

print("group url ", url)

response = requests.get(url, headers=self.headers)

print("group response ", response, response.json(), response.content)

if response.status_code == 200:
members = response.json()
return [member['id'] for member in members]
Expand Down

0 comments on commit 4f9ea1c

Please sign in to comment.