Fixing integration test script
This commit is contained in:
parent
6b880244a1
commit
1f9ccca9bf
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue