1111import sqlalchemy
1212from aiopg .sa .result import RowProxy
1313from faker import Faker
14+ from models_library .products import ProductName
1415from simcore_postgres_database .models .groups import GroupType , groups , user_to_groups
1516from simcore_postgres_database .models .groups_extra_properties import (
1617 groups_extra_properties ,
2122 GroupExtraPropertiesRepo ,
2223)
2324from sqlalchemy import literal_column
25+ from sqlalchemy .engine .row import Row
2426from sqlalchemy .ext .asyncio import AsyncEngine
2527
2628
@@ -84,7 +86,7 @@ async def test_get(
8486 connection : aiopg .sa .connection .SAConnection ,
8587 registered_user : RowProxy ,
8688 product_name : str ,
87- create_fake_product : Callable [... , Awaitable [RowProxy ]],
89+ create_fake_product : Callable [[ ProductName ] , Awaitable [Row ]],
8890 create_fake_group_extra_properties : Callable [..., Awaitable [GroupExtraProperties ]],
8991):
9092 with pytest .raises (GroupExtraPropertiesNotFoundError ):
@@ -106,7 +108,7 @@ async def test_get_v2(
106108 asyncpg_engine : AsyncEngine ,
107109 registered_user : RowProxy ,
108110 product_name : str ,
109- create_fake_product : Callable [... , Awaitable [RowProxy ]],
111+ create_fake_product : Callable [[ ProductName ] , Awaitable [Row ]],
110112 create_fake_group_extra_properties : Callable [..., Awaitable [GroupExtraProperties ]],
111113):
112114 with pytest .raises (GroupExtraPropertiesNotFoundError ):
@@ -157,7 +159,7 @@ async def test_get_aggregated_properties_for_user_returns_properties_in_expected
157159 connection : aiopg .sa .connection .SAConnection ,
158160 product_name : str ,
159161 registered_user : RowProxy ,
160- create_fake_product : Callable [... , Awaitable [RowProxy ]],
162+ create_fake_product : Callable [[ ProductName ] , Awaitable [Row ]],
161163 create_fake_group : Callable [..., Awaitable [RowProxy ]],
162164 create_fake_group_extra_properties : Callable [..., Awaitable [GroupExtraProperties ]],
163165 everyone_group_id : int ,
@@ -227,7 +229,7 @@ async def test_get_aggregated_properties_for_user_returns_properties_in_expected
227229 connection : aiopg .sa .connection .SAConnection ,
228230 product_name : str ,
229231 registered_user : RowProxy ,
230- create_fake_product : Callable [... , Awaitable [RowProxy ]],
232+ create_fake_product : Callable [[ ProductName ] , Awaitable [Row ]],
231233 create_fake_group : Callable [..., Awaitable [RowProxy ]],
232234 create_fake_group_extra_properties : Callable [..., Awaitable [GroupExtraProperties ]],
233235 everyone_group_id : int ,
@@ -274,7 +276,7 @@ async def test_get_aggregated_properties_for_user_returns_property_values_as_tru
274276 connection : aiopg .sa .connection .SAConnection ,
275277 product_name : str ,
276278 registered_user : RowProxy ,
277- create_fake_product : Callable [... , Awaitable [RowProxy ]],
279+ create_fake_product : Callable [[ ProductName ] , Awaitable [Row ]],
278280 create_fake_group : Callable [..., Awaitable [RowProxy ]],
279281 create_fake_group_extra_properties : Callable [..., Awaitable [GroupExtraProperties ]],
280282 everyone_group_id : int ,
@@ -385,7 +387,7 @@ async def test_get_aggregated_properties_for_user_returns_property_values_as_tru
385387 connection : aiopg .sa .connection .SAConnection ,
386388 product_name : str ,
387389 registered_user : RowProxy ,
388- create_fake_product : Callable [... , Awaitable [RowProxy ]],
390+ create_fake_product : Callable [[ ProductName ] , Awaitable [Row ]],
389391 create_fake_group : Callable [..., Awaitable [RowProxy ]],
390392 create_fake_group_extra_properties : Callable [..., Awaitable [GroupExtraProperties ]],
391393 everyone_group_id : int ,
0 commit comments