Fixing integration test script

This commit is contained in:
Imbus 2024-04-03 14:21:55 +02:00
parent 6b880244a1
commit 1f9ccca9bf

View file

@ -83,13 +83,14 @@ def test_ProjectRoleChange():
def test_get_user_projects():
username = "user2"
password = "123"
dprint("Testing get user projects")
loginResponse = login("user2", "123")
loginResponse = login(username, password)
# Check if the user is added to the project
response = requests.get(
getUserProjectsPath,
json={"username": "user2"},
getUserProjectsPath + "/" + username,
headers={"Authorization": "Bearer " + loginResponse.json()["token"]},
)
dprint(response.text)