Add missing asserts to API tests

This commit is contained in:
nucleogenic 2022-09-25 18:15:35 +01:00
parent a142af571d
commit 75b0994b77
No known key found for this signature in database
GPG Key ID: 04A5E4E319C4271D
2 changed files with 4 additions and 4 deletions

View File

@ -40,4 +40,4 @@ def test_login_with_invalid_credentials(http_client_unauthenticated):
# route("/logout") # route("/logout")
def test_logout(http_client): def test_logout(http_client):
response = http_client.get("/logout") response = http_client.get("/logout")
response.status_code == 200 assert response.status_code == 200

View File

@ -91,9 +91,9 @@ def test_detach_device(http_client, create_test_image):
response_data = response.json() response_data = response.json()
response.status_code == 200 assert response.status_code == 200
response_data["status"] == STATUS_SUCCESS assert response_data["status"] == STATUS_SUCCESS
response_data["messages"][0]["message"] == f"Detached SCSI ID {SCSI_ID} LUN 0" assert response_data["messages"][0]["message"] == f"Detached SCSI ID {SCSI_ID} LUN 0"
# route("/scsi/detach_all", methods=["POST"]) # route("/scsi/detach_all", methods=["POST"])