From 3467714b231ae7c4e2fbb8c910a470cf9c207edd Mon Sep 17 00:00:00 2001 From: belthlemar Date: Tue, 1 Oct 2024 19:22:35 +0200 Subject: [PATCH] fix test --- tests/integration/study_data_blueprint/test_thermal.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/integration/study_data_blueprint/test_thermal.py b/tests/integration/study_data_blueprint/test_thermal.py index 198b24aa1e..de00145805 100644 --- a/tests/integration/study_data_blueprint/test_thermal.py +++ b/tests/integration/study_data_blueprint/test_thermal.py @@ -349,8 +349,10 @@ def test_lifecycle(self, client: TestClient, user_access_token: str, internal_st # creating a thermal cluster with a name as a string should not raise an Exception res = client.post(f"/v1/studies/{internal_study_id}/areas/{area_id}/clusters/thermal", json={"name": 111}) assert res.status_code == 200, res.json() - res = client.request("DELETE", f"/v1/studies/{internal_study_id}/areas/{area_id}/clusters/thermal", json=[111]) - assert res.status_code == 200, res.json() + res = client.request( + "DELETE", f"/v1/studies/{internal_study_id}/areas/{area_id}/clusters/thermal", json=["111"] + ) + assert res.status_code == 204, res.json() # We can create a thermal cluster with the following properties: fr_gas_conventional_props = {