Skip to content

Commit

Permalink
poetry lock update caused api-commons update so pytests needed updating
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadam14 committed May 6, 2024
1 parent e7bafb4 commit e8e90ef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/api/routers/test_institutions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ def test_invalid_tax_id(self, mocker: MockerFixture, app_fixture: FastAPI, authe
},
)
assert (
res.json()["error_detail"][0]["msg"]
== f"Value error, Invalid tax_id 123456789. {regex_configs.tin.error_text}"
f"Value error, Invalid tax_id 123456789. {regex_configs.tin.error_text}" in res.json()["error_detail"]
)
assert res.status_code == 422

Expand Down Expand Up @@ -121,7 +120,7 @@ def test_invalid_lei(self, mocker: MockerFixture, app_fixture: FastAPI, authed_u
},
)
assert (
res.json()["error_detail"][0]["msg"] == f"Value error, Invalid lei test_Lei. {regex_configs.lei.error_text}"
f"Value error, Invalid lei test_Lei. {regex_configs.lei.error_text}" in res.json()["error_detail"]
)
assert res.status_code == 422

Expand Down Expand Up @@ -257,7 +256,7 @@ def test_create_institution_missing_sbl_type_free_form(
},
)
assert res.status_code == 422
assert "requires additional details." in res.json()["error_detail"][0]["msg"]
assert "requires additional details." in res.json()["error_detail"]

def test_create_institution_authed_no_permission(self, app_fixture: FastAPI, auth_mock: Mock):
claims = {
Expand Down

0 comments on commit e8e90ef

Please sign in to comment.