test for getUnsigned
This commit is contained in:
parent
9edcc74ee2
commit
c466a98b15
1 changed files with 11 additions and 0 deletions
11
testing.py
11
testing.py
|
@ -503,6 +503,17 @@ def test_remove_project():
|
||||||
assert response.status_code == 200, "Remove project failed"
|
assert response.status_code == 200, "Remove project failed"
|
||||||
gprint("test_remove_project successful")
|
gprint("test_remove_project successful")
|
||||||
|
|
||||||
|
def test_get_unsigned_reports():
|
||||||
|
# Log in as the user
|
||||||
|
token = login("user2", "123").json()["token"]
|
||||||
|
|
||||||
|
# Make a request to get all unsigned reports
|
||||||
|
response = requests.get(
|
||||||
|
getUnsignedReportsPath + "/" + projectName,
|
||||||
|
headers={"Authorization": "Bearer " + token},
|
||||||
|
)
|
||||||
|
assert response.status_code == 200, "Get unsigned reports failed"
|
||||||
|
gprint("test_get_unsigned_reports successful")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in a new issue