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(): def test_get_user_projects():
username = "user2"
password = "123"
dprint("Testing get user projects") dprint("Testing get user projects")
loginResponse = login("user2", "123") loginResponse = login(username, password)
# Check if the user is added to the project # Check if the user is added to the project
response = requests.get( response = requests.get(
getUserProjectsPath, getUserProjectsPath + "/" + username,
json={"username": "user2"},
headers={"Authorization": "Bearer " + loginResponse.json()["token"]}, headers={"Authorization": "Bearer " + loginResponse.json()["token"]},
) )
dprint(response.text) dprint(response.text)