Skip to content

Commit a1d2d98

Browse files
authored
Merge pull request #199 from datakind/feat/EdviseSchema
Fix institutions_test assert for Black and Ruff format compatibility
2 parents 50cbee7 + 708bed3 commit a1d2d98

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/webapp/routers/institutions_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,8 @@ def test_read_inst_by_name_case_insensitive(client: TestClient) -> None:
249249
for name_variant in test_cases:
250250
response = client.get(f"/institutions/name/{name_variant}")
251251
assert response.status_code == 200, f"Failed for variant: {name_variant}"
252-
assert response.json() == INSTITUTION_OBJ, (
253-
f"Response mismatch for variant: {name_variant}"
254-
)
252+
data = response.json()
253+
assert data == INSTITUTION_OBJ, f"Response mismatch for variant: {name_variant}"
255254

256255

257256
def test_read_inst_by_name_case_insensitive_lowercase(

0 commit comments

Comments
 (0)