mirror of
https://github.com/akuker/RASCSI.git
synced 2024-08-20 13:29:27 +00:00
Add missing asserts to API tests
This commit is contained in:
parent
a142af571d
commit
75b0994b77
@ -40,4 +40,4 @@ def test_login_with_invalid_credentials(http_client_unauthenticated):
|
||||
# route("/logout")
|
||||
def test_logout(http_client):
|
||||
response = http_client.get("/logout")
|
||||
response.status_code == 200
|
||||
assert response.status_code == 200
|
||||
|
@ -91,9 +91,9 @@ def test_detach_device(http_client, create_test_image):
|
||||
|
||||
response_data = response.json()
|
||||
|
||||
response.status_code == 200
|
||||
response_data["status"] == STATUS_SUCCESS
|
||||
response_data["messages"][0]["message"] == f"Detached SCSI ID {SCSI_ID} LUN 0"
|
||||
assert response.status_code == 200
|
||||
assert response_data["status"] == STATUS_SUCCESS
|
||||
assert response_data["messages"][0]["message"] == f"Detached SCSI ID {SCSI_ID} LUN 0"
|
||||
|
||||
|
||||
# route("/scsi/detach_all", methods=["POST"])
|
||||
|
Loading…
Reference in New Issue
Block a user