From c466a98b15d389cad4e22d4f52c685a157b41862 Mon Sep 17 00:00:00 2001 From: al8763be Date: Fri, 29 Mar 2024 12:43:35 +0100 Subject: [PATCH] test for getUnsigned --- testing.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/testing.py b/testing.py index 032e56c..5fb8ffe 100644 --- a/testing.py +++ b/testing.py @@ -503,6 +503,17 @@ def test_remove_project(): assert response.status_code == 200, "Remove project failed" 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__":