Skip to content

Commit f83103a

Browse files
committed
use plugin instead of library
1 parent dfaeaeb commit f83103a

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

services/web/server/requirements/_test.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jsonref
2323
jsonschema
2424
openapi-spec-validator
2525
pytest
26-
pytest-aiohttp
2726
pytest-asyncio
2827
pytest-benchmark
2928
pytest-cov

services/web/server/requirements/_test.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ aiohttp==3.11.18
77
# -c requirements/../../../../requirements/constraints.txt
88
# -c requirements/_base.txt
99
# aioresponses
10-
# pytest-aiohttp
1110
aioresponses==0.7.8
1211
# via -r requirements/_test.in
1312
aiosignal==1.2.0
@@ -210,7 +209,6 @@ pyrsistent==0.18.1
210209
pytest==8.3.5
211210
# via
212211
# -r requirements/_test.in
213-
# pytest-aiohttp
214212
# pytest-asyncio
215213
# pytest-benchmark
216214
# pytest-cov
@@ -220,12 +218,8 @@ pytest==8.3.5
220218
# pytest-mock
221219
# pytest-sugar
222220
# pytest-xdist
223-
pytest-aiohttp==1.0.5
224-
# via -r requirements/_test.in
225221
pytest-asyncio==0.26.0
226-
# via
227-
# -r requirements/_test.in
228-
# pytest-aiohttp
222+
# via -r requirements/_test.in
229223
pytest-benchmark==5.1.0
230224
# via -r requirements/_test.in
231225
pytest-cov==6.0.0

services/web/server/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262

6363
# imports the fixtures for the integration tests
6464
pytest_plugins = [
65+
"aiohttp.pytest_plugin",
6566
"pytest_simcore.cli_runner",
6667
"pytest_simcore.db_entries_mocks",
6768
"pytest_simcore.docker_compose",
@@ -157,7 +158,7 @@ async def logged_user(
157158
"first_name": faker.first_name(),
158159
"last_name": faker.last_name(),
159160
"phone": faker.phone_number()
160-
+ f"{random.randint(1000,9999)}", # noqa: S311
161+
+ f"{random.randint(1000, 9999)}", # noqa: S311
161162
},
162163
check_if_succeeds=user_role != UserRole.ANONYMOUS,
163164
) as user:
@@ -241,7 +242,6 @@ async def _setup(
241242
"templateType": None,
242243
}
243244
if from_study:
244-
245245
from_study_wo_access_rights = deepcopy(from_study)
246246
from_study_wo_access_rights.pop("accessRights")
247247
expected_data = {

0 commit comments

Comments
 (0)