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 9945fc2 commit 05ce0f0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/gitlab/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,19 @@ def get_userid_by_mail(self, email):
print(err)

def get_project_members(self, project_id):
url = f"{self.api_url}{self.api_path}/projects/{project_id}/members"
url = f'{self.api_url}{self.api_path}/projects/{project_id}/members'

print("url is", url)


path = "/projects/"
member_path = "/members"

api_url = f'{self.api_url}{self.api_path}{path}{project_id}{member_path}'

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

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

if response.status_code == 200:
members = response.json()
Expand Down

0 comments on commit 05ce0f0

Please sign in to comment.