|
1 | 1 | # pylint: disable=not-context-manager |
2 | 2 | # pylint: disable=protected-access |
3 | 3 | # pylint: disable=redefined-outer-name |
| 4 | +# pylint: disable=too-many-positional-arguments |
4 | 5 | # pylint: disable=unused-argument |
5 | 6 | # pylint: disable=unused-variable |
6 | 7 |
|
@@ -109,7 +110,7 @@ async def product( |
109 | 110 | """ |
110 | 111 | # NOTE: this fixture ignores products' group-id but it is fine for this test context |
111 | 112 | assert product["group_id"] is None |
112 | | - async with insert_and_get_row_lifespan( |
| 113 | + async with insert_and_get_row_lifespan( # pylint:disable=contextmanager-generator-missing-cleanup |
113 | 114 | sqlalchemy_async_engine, |
114 | 115 | table=products, |
115 | 116 | values=product, |
@@ -149,7 +150,7 @@ async def user( |
149 | 150 | injects a user in db |
150 | 151 | """ |
151 | 152 | assert user_id == user["id"] |
152 | | - async with insert_and_get_row_lifespan( |
| 153 | + async with insert_and_get_row_lifespan( # pylint:disable=contextmanager-generator-missing-cleanup |
153 | 154 | sqlalchemy_async_engine, |
154 | 155 | table=users, |
155 | 156 | values=user, |
@@ -442,9 +443,9 @@ def _fake_factory( |
442 | 443 |
|
443 | 444 |
|
444 | 445 | @pytest.fixture |
445 | | -def create_director_list_services_from() -> Callable[ |
446 | | - [list[dict[str, Any]], list], list[dict[str, Any]] |
447 | | -]: |
| 446 | +def create_director_list_services_from() -> ( |
| 447 | + Callable[[list[dict[str, Any]], list], list[dict[str, Any]]] |
| 448 | +): |
448 | 449 | """Convenience function to merge outputs of |
449 | 450 | - `create_fake_service_data` callable with those of |
450 | 451 | - `expected_director_list_services` fixture |
|
0 commit comments