Skip to content

Commit 6aaa755

Browse files
committed
warning
2 parents ec8593a + 4090c55 commit 6aaa755

File tree

96 files changed

+1263
-788
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1263
-788
lines changed

packages/aws-library/requirements/_tools.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ isort==6.0.1
2828
# pylint
2929
mccabe==0.7.0
3030
# via pylint
31-
mypy==1.15.0
31+
mypy==1.16.1
3232
# via -r requirements/../../../requirements/devenv.txt
33-
mypy-extensions==1.0.0
33+
mypy-extensions==1.1.0
3434
# via
3535
# black
3636
# mypy
@@ -43,7 +43,9 @@ packaging==24.2
4343
# black
4444
# build
4545
pathspec==0.12.1
46-
# via black
46+
# via
47+
# black
48+
# mypy
4749
pip==25.0.1
4850
# via pip-tools
4951
pip-tools==7.4.1

packages/celery-library/requirements/_tools.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ isort==6.0.1
2828
# pylint
2929
mccabe==0.7.0
3030
# via pylint
31-
mypy==1.15.0
31+
mypy==1.16.1
3232
# via -r requirements/../../../requirements/devenv.txt
3333
mypy-extensions==1.1.0
3434
# via
@@ -43,7 +43,9 @@ packaging==25.0
4343
# black
4444
# build
4545
pathspec==0.12.1
46-
# via black
46+
# via
47+
# black
48+
# mypy
4749
pip==25.1.1
4850
# via pip-tools
4951
pip-tools==7.4.1

packages/common-library/requirements/_tools.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ isort==6.0.1
2626
# pylint
2727
mccabe==0.7.0
2828
# via pylint
29-
mypy==1.15.0
29+
mypy==1.16.1
3030
# via -r requirements/../../../requirements/devenv.txt
31-
mypy-extensions==1.0.0
31+
mypy-extensions==1.1.0
3232
# via
3333
# black
3434
# mypy
@@ -40,7 +40,9 @@ packaging==24.2
4040
# black
4141
# build
4242
pathspec==0.12.1
43-
# via black
43+
# via
44+
# black
45+
# mypy
4446
pip==25.0.1
4547
# via pip-tools
4648
pip-tools==7.4.1

packages/dask-task-models-library/requirements/_tools.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ isort==6.0.1
2727
# pylint
2828
mccabe==0.7.0
2929
# via pylint
30-
mypy==1.15.0
30+
mypy==1.16.1
3131
# via -r requirements/../../../requirements/devenv.txt
3232
mypy-extensions==1.1.0
3333
# via
@@ -42,7 +42,9 @@ packaging==25.0
4242
# black
4343
# build
4444
pathspec==0.12.1
45-
# via black
45+
# via
46+
# black
47+
# mypy
4648
pip==25.1.1
4749
# via pip-tools
4850
pip-tools==7.4.1

packages/models-library/requirements/_tools.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ mccabe==0.7.0
3131
# via pylint
3232
mdurl==0.1.2
3333
# via markdown-it-py
34-
mypy==1.15.0
34+
mypy==1.16.1
3535
# via -r requirements/../../../requirements/devenv.txt
36-
mypy-extensions==1.0.0
36+
mypy-extensions==1.1.0
3737
# via
3838
# black
3939
# mypy
@@ -45,7 +45,9 @@ packaging==24.2
4545
# black
4646
# build
4747
pathspec==0.12.1
48-
# via black
48+
# via
49+
# black
50+
# mypy
4951
pip==25.0.1
5052
# via pip-tools
5153
pip-tools==7.4.1

packages/notifications-library/requirements/_test.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,17 @@ multidict==6.1.0
4848
# -c requirements/_base.txt
4949
# aiohttp
5050
# yarl
51-
mypy==1.15.0
51+
mypy==1.16.1
5252
# via sqlalchemy
53-
mypy-extensions==1.0.0
53+
mypy-extensions==1.1.0
5454
# via mypy
5555
packaging==24.2
5656
# via
5757
# -c requirements/_base.txt
5858
# pytest
5959
# pytest-sugar
60+
pathspec==0.12.1
61+
# via mypy
6062
pluggy==1.5.0
6163
# via
6264
# pytest

packages/notifications-library/requirements/_tools.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ isort==6.0.1
2727
# pylint
2828
mccabe==0.7.0
2929
# via pylint
30-
mypy==1.15.0
30+
mypy==1.16.1
3131
# via
3232
# -c requirements/_test.txt
3333
# -r requirements/../../../requirements/devenv.txt
34-
mypy-extensions==1.0.0
34+
mypy-extensions==1.1.0
3535
# via
3636
# -c requirements/_test.txt
3737
# black
@@ -45,7 +45,10 @@ packaging==24.2
4545
# black
4646
# build
4747
pathspec==0.12.1
48-
# via black
48+
# via
49+
# -c requirements/_test.txt
50+
# black
51+
# mypy
4952
pip==25.0.1
5053
# via pip-tools
5154
pip-tools==7.4.1

packages/postgres-database/requirements/_test.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ greenlet==3.1.1
1919
# sqlalchemy
2020
iniconfig==2.0.0
2121
# via pytest
22-
mypy==1.15.0
22+
mypy==1.16.1
2323
# via sqlalchemy
24-
mypy-extensions==1.0.0
24+
mypy-extensions==1.1.0
2525
# via mypy
2626
packaging==24.2
2727
# via
2828
# -c requirements/_base.txt
2929
# pytest
30+
pathspec==0.12.1
31+
# via mypy
3032
pluggy==1.5.0
3133
# via
3234
# pytest

packages/postgres-database/requirements/_tools.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ isort==6.0.1
2626
# pylint
2727
mccabe==0.7.0
2828
# via pylint
29-
mypy==1.15.0
29+
mypy==1.16.1
3030
# via
3131
# -c requirements/_test.txt
3232
# -r requirements/../../../requirements/devenv.txt
33-
mypy-extensions==1.0.0
33+
mypy-extensions==1.1.0
3434
# via
3535
# -c requirements/_test.txt
3636
# black
@@ -44,7 +44,10 @@ packaging==24.2
4444
# black
4545
# build
4646
pathspec==0.12.1
47-
# via black
47+
# via
48+
# -c requirements/_test.txt
49+
# black
50+
# mypy
4851
pip==25.0.1
4952
# via pip-tools
5053
pip-tools==7.4.1

packages/pytest-simcore/src/pytest_simcore/db_entries_mocks.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@
1010
import pytest
1111
import sqlalchemy as sa
1212
from faker import Faker
13+
from models_library.products import ProductName
1314
from models_library.projects import ProjectAtDB, ProjectID
1415
from models_library.projects_nodes_io import NodeID
16+
from pytest_simcore.helpers.postgres_tools import insert_and_get_row_lifespan
1517
from simcore_postgres_database.models.comp_pipeline import StateType, comp_pipeline
1618
from simcore_postgres_database.models.comp_tasks import comp_tasks
19+
from simcore_postgres_database.models.products import products
1720
from simcore_postgres_database.models.projects import ProjectType, projects
21+
from simcore_postgres_database.models.projects_to_products import projects_to_products
1822
from simcore_postgres_database.models.services import services_access_rights
1923
from simcore_postgres_database.models.users import UserRole, UserStatus, users
2024
from simcore_postgres_database.utils_projects_nodes import (
@@ -63,9 +67,22 @@ def creator(**user_kwargs) -> dict[str, Any]:
6367
print(f"<-- deleted users {created_user_ids=}")
6468

6569

70+
@pytest.fixture
71+
async def product_db(
72+
sqlalchemy_async_engine: AsyncEngine, product: dict[str, Any]
73+
) -> AsyncIterator[dict[str, Any]]:
74+
async with insert_and_get_row_lifespan( # pylint:disable=contextmanager-generator-missing-cleanup
75+
sqlalchemy_async_engine,
76+
table=products,
77+
values=product,
78+
pk_col=products.c.name,
79+
) as created_product:
80+
yield created_product
81+
82+
6683
@pytest.fixture
6784
async def project(
68-
sqlalchemy_async_engine: AsyncEngine, faker: Faker
85+
sqlalchemy_async_engine: AsyncEngine, faker: Faker, product_name: ProductName
6986
) -> AsyncIterator[Callable[..., Awaitable[ProjectAtDB]]]:
7087
created_project_ids: list[str] = []
7188

@@ -113,6 +130,12 @@ async def creator(
113130
for node_id in inserted_project.workbench
114131
],
115132
)
133+
await con.execute(
134+
projects_to_products.insert().values(
135+
project_uuid=f"{inserted_project.uuid}",
136+
product_name=product_name,
137+
)
138+
)
116139
print(f"--> created {inserted_project=}")
117140
created_project_ids.append(f"{inserted_project.uuid}")
118141
return inserted_project

0 commit comments

Comments
 (0)