Skip to content

Commit

Permalink
fix: change a test to explicitely test the (new) comment field
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoPascoli committed Jan 6, 2025
1 parent 2019a9b commit 282d90b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/study_data_blueprint/test_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_link_update(self, client: TestClient, user_access_token: str, study_typ

area1_id = preparer.create_area(study_id, name="Area 1")["id"]
area2_id = preparer.create_area(study_id, name="Area 2")["id"]
client.post(f"/v1/studies/{study_id}/links", json={"area1": area1_id, "area2": area2_id, "hurdlesCost": True})
client.post(f"/v1/studies/{study_id}/links", json={"area1": area1_id, "area2": area2_id, "hurdlesCost": True, "comments": "comment"})
res = client.put(
f"/v1/studies/{study_id}/links/{area1_id}/{area2_id}",
json={"colorr": 150},
Expand All @@ -44,7 +44,7 @@ def test_link_update(self, client: TestClient, user_access_token: str, study_typ
"colorg": 112,
"colorr": 150,
"displayComments": True,
"comments": "",
"comments": "comment",
"filterSynthesis": "hourly, daily, weekly, monthly, annual",
"filterYearByYear": "hourly, daily, weekly, monthly, annual",
"hurdlesCost": True,
Expand Down Expand Up @@ -84,7 +84,7 @@ def test_link_update(self, client: TestClient, user_access_token: str, study_typ
"colorg": 112,
"colorr": 150,
"displayComments": True,
"comments": "",
"comments": "comment",
"filterSynthesis": "hourly, daily, weekly, monthly, annual",
"filterYearByYear": "hourly, daily, weekly, monthly, annual",
"hurdlesCost": False,
Expand Down Expand Up @@ -192,7 +192,7 @@ def test_link_820(self, client: TestClient, user_access_token: str, study_type:
"colorg": 170,
"colorr": 180,
"displayComments": True,
"comments": "",
"comments": "comment",
"filterSynthesis": "hourly, daily, weekly, monthly, annual",
"filterYearByYear": "hourly, daily, weekly, monthly, annual",
"hurdlesCost": False,
Expand Down

0 comments on commit 282d90b

Please sign in to comment.