Skip to content

Commit

Permalink
test: add a test to make sure that the GET /links still works after u…
Browse files Browse the repository at this point in the history
…pdating via table mode view
  • Loading branch information
TheoPascoli committed Dec 3, 2024
1 parent 81ea732 commit 51e52b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/study_data_blueprint/test_table_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ def test_lifecycle__nominal(
}
)

# Sending PUT request
res = client.put(f"/v1/studies/{internal_study_id}/table-mode/links", json=json_input)
assert res.status_code == 200, res.json()

Expand All @@ -327,11 +326,14 @@ def test_lifecycle__nominal(
del expected_partial["de / it"]
assert actual == expected_partial

# Requête GET pour validation complète
res = client.get(f"/v1/studies/{internal_study_id}/table-mode/links")
assert res.status_code == 200, res.json()
assert res.json() == expected_links

# GET request to make sure that the GET /links works
res = client.get(f"/v1/studies/{internal_study_id}/links")
assert res.status_code == 200, res.json()

# Table Mode - Thermal Clusters
# =============================

Expand Down

0 comments on commit 51e52b7

Please sign in to comment.