Skip to content

Commit

Permalink
chore(deps-dev): bump black from 23.7.0 to 24.4.2 (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored May 6, 2024
1 parent 038f08e commit 7c252ac
Show file tree
Hide file tree
Showing 23 changed files with 280 additions and 263 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-29 11:55:10.328766
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-03-12 11:40:25.790658
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-29 12:03:41.737864
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-02 11:37:52.487064
"""

from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-12-14 01:23:17.872728
"""

from typing import Sequence, Union
from alembic import op
from db_revisions.utils import get_table_by_name, get_indices_from_collection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-01-31 10:23:01.081439
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-12-27 14:21:33.567414
"""

from typing import Sequence, Union

from alembic import op
Expand Down
1 change: 1 addition & 0 deletions db_revisions/versions/3f893e52d05c_240130_add_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-01-30 14:37:47.652233
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-29 12:09:20.012400
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-29 12:20:05.593826
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-01-11 14:33:56.518611
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-12-14 01:21:48.325752
"""

from typing import Sequence, Union
from alembic import op
from db_revisions.utils import get_table_by_name, get_indices_from_collection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-01-31 10:23:21.163572
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-29 12:14:16.694281
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-12-14 01:24:00.120073
"""

from typing import Sequence, Union
from alembic import op
from db_revisions.utils import get_table_by_name, get_indices_from_collection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-02 11:31:54.882727
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-12-29 12:33:11.031470
"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-12-14 01:23:47.017878
"""

from typing import Sequence, Union
from alembic import op
from db_revisions.utils import get_table_by_name, get_indices_from_collection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-02 11:34:43.808166
"""

from typing import Sequence, Union

from alembic import op
Expand Down
503 changes: 252 additions & 251 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pytest-alembic = "^0.10.7"

[tool.poetry.group.linters.dependencies]
ruff = "0.0.278"
black = "23.7.0"
black = "24.4.2"

[tool.pytest.ini_options]
asyncio_mode = "auto"
Expand Down
8 changes: 5 additions & 3 deletions src/regtech_user_fi_management/entities/repos/repo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ def get_associated_sbl_types(
lei: str, user_id: str, types: Sequence[SblTypeAssociationDto | str]
) -> Sequence[SblTypeMappingDao]:
return [
SblTypeMappingDao(type_id=t, lei=lei, modified_by=user_id)
if isinstance(t, str)
else SblTypeMappingDao(type_id=t.id, details=t.details, lei=lei, modified_by=user_id)
(
SblTypeMappingDao(type_id=t, lei=lei, modified_by=user_id)
if isinstance(t, str)
else SblTypeMappingDao(type_id=t.id, details=t.details, lei=lei, modified_by=user_id)
)
for t in types
]
11 changes: 3 additions & 8 deletions tests/api/routers/test_institutions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ def test_invalid_tax_id(self, mocker: MockerFixture, app_fixture: FastAPI, authe
"top_holder_rssd_id": 123456,
},
)
assert (
res.json()["error_detail"][0]["msg"]
== f"Value error, Invalid tax_id 123456789. {regex_configs.tin.error_text}"
)
assert f"Value error, Invalid tax_id 123456789. {regex_configs.tin.error_text}" in res.json()["error_detail"]
assert res.status_code == 422

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

def test_create_institution_authed(self, mocker: MockerFixture, app_fixture: FastAPI, authed_user_mock: Mock):
Expand Down Expand Up @@ -257,7 +252,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 7c252ac

Please sign in to comment.