From 1f9ccca9bf508f78313a04666e47af006568567b Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 3 Apr 2024 14:21:55 +0200 Subject: [PATCH] Fixing integration test script --- testing.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/testing.py b/testing.py index d4594d1..7be2290 100644 --- a/testing.py +++ b/testing.py @@ -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)