Skip to content

Commit ce75442

Browse files
committed
Bump test requirements
1 parent e5a313f commit ce75442

File tree

4 files changed

+24
-51
lines changed

4 files changed

+24
-51
lines changed

test-requirements.txt

Lines changed: 17 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,27 @@
1-
attrs==21.2.0
2-
bcrypt==3.2.0
3-
black==22.12.0
4-
cached-property==1.5.2
5-
certifi==2024.7.4
6-
cffi>=1.17.0,<2.0.0
7-
charset-normalizer==2.0.1
8-
cryptography==41.0.0
9-
distro==1.5.0
1+
bcrypt>=4.0.0
2+
black==24.10.0
3+
cryptography>=41.0.0
104
docker>=5.0.0
5+
flake8==7.1.0
6+
freezegun>=1.3.0
117
grpcio>=1.42.0
12-
idna==3.2
13-
importlib-metadata==4.6.1
14-
iniconfig==1.1.1
15-
jsonschema==3.2.0
16-
packaging==21.0
17-
paramiko==2.10.1
18-
pluggy>=1.0.0
8+
packaging>=23.0
9+
paramiko>=3.0.0
1910
protobuf>=3.13.0,<7.0.0
20-
py>=1.11.0
21-
pycparser==2.20
22-
PyNaCl==1.4.0
23-
pyparsing==2.4.7
24-
pyrsistent==0.18.0
25-
pytest>=7.0.0,<8.0.0
26-
pytest-asyncio==0.21.0
11+
pytest>=7.0.0
12+
pytest-asyncio>=0.21.0
2713
pytest-docker>=3.0.0
28-
python-dotenv==0.18.0
29-
PyYAML==5.3.1
30-
pyjwt==2.0.0
31-
requests==2.31.0
32-
texttable==1.6.4
33-
toml==0.10.2
34-
typing-extensions==4.12.2
35-
urllib3==1.26.6
36-
websocket-client==0.59.0
37-
zipp==3.19.1
38-
aiohttp>=3.9.0
39-
pytest-pep8
4014
pytest-flake8
41-
flake8==6.1.0
42-
sqlalchemy==1.4.26
15+
pytest-pep8
16+
python-dotenv>=1.0.0
17+
PyYAML>=6.0
18+
pyjwt>=2.4.0
19+
requests>=2.31.0
20+
sqlalchemy>=1.4.0,<2.0.0
21+
typing-extensions>=4.6.0
22+
aiohttp>=3.9.0
4323
pylint-protobuf
4424
cython
45-
freezegun>=1.3.0
4625
# pytest-cov
4726
yandexcloud
4827
-e .

tests/conftest.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def aio_connection(endpoint, database):
158158

159159

160160
@pytest.fixture()
161-
async def driver(endpoint, database, event_loop):
161+
async def driver(endpoint, database):
162162
driver_config = ydb.DriverConfig(
163163
endpoint,
164164
database,
@@ -173,7 +173,7 @@ async def driver(endpoint, database, event_loop):
173173

174174

175175
@pytest.fixture()
176-
async def driver_sync(endpoint, database, event_loop):
176+
async def driver_sync(endpoint, database):
177177
driver_config = ydb.DriverConfig(
178178
endpoint,
179179
database,
@@ -261,7 +261,6 @@ def topic_consumer():
261261

262262

263263
@pytest.fixture()
264-
@pytest.mark.asyncio()
265264
async def topic_path(driver, topic_consumer, database) -> str:
266265
topic_path = database + "/test-topic"
267266

@@ -279,7 +278,6 @@ async def topic_path(driver, topic_consumer, database) -> str:
279278

280279

281280
@pytest.fixture()
282-
@pytest.mark.asyncio()
283281
async def topic2_path(driver, topic_consumer, database) -> str:
284282
topic_path = database + "/test-topic2"
285283

@@ -297,7 +295,6 @@ async def topic2_path(driver, topic_consumer, database) -> str:
297295

298296

299297
@pytest.fixture()
300-
@pytest.mark.asyncio()
301298
async def topic_with_two_partitions_path(driver, topic_consumer, database) -> str:
302299
topic_path = database + "/test-topic-two-partitions"
303300

@@ -317,7 +314,6 @@ async def topic_with_two_partitions_path(driver, topic_consumer, database) -> st
317314

318315

319316
@pytest.fixture()
320-
@pytest.mark.asyncio()
321317
async def topic_with_messages(driver, topic_consumer, database):
322318
topic_path = database + "/test-topic-with-messages"
323319
try:
@@ -348,7 +344,6 @@ async def topic_with_messages(driver, topic_consumer, database):
348344

349345

350346
@pytest.fixture()
351-
@pytest.mark.asyncio()
352347
async def topic_with_messages_with_metadata(driver, topic_consumer, database):
353348
topic_path = database + "/test-topic-with-messages-with-metadata"
354349
try:
@@ -373,7 +368,6 @@ async def topic_with_messages_with_metadata(driver, topic_consumer, database):
373368

374369

375370
@pytest.fixture()
376-
@pytest.mark.asyncio()
377371
async def topic_reader(driver, topic_consumer, topic_path) -> ydb.TopicReaderAsyncIO:
378372
reader = driver.topic_client.reader(topic=topic_path, consumer=topic_consumer)
379373
yield reader

tests/oauth2_token_exchange/test_token_exchange.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def test_oauth2_token_exchange_credentials_file():
629629
},
630630
},
631631
http_request_is_expected=False,
632-
get_token_error_text_part="Could not deserialize key data.",
632+
get_token_error_text_part="Could not parse the provided public key.",
633633
),
634634
DataForConfigTest(
635635
cfg={
@@ -640,7 +640,7 @@ def test_oauth2_token_exchange_credentials_file():
640640
},
641641
},
642642
http_request_is_expected=False,
643-
get_token_error_text_part="Could not deserialize key data.",
643+
get_token_error_text_part="Unable to load PEM file",
644644
),
645645
DataForConfigTest(
646646
cfg={
@@ -651,7 +651,7 @@ def test_oauth2_token_exchange_credentials_file():
651651
},
652652
},
653653
http_request_is_expected=False,
654-
get_token_error_text_part="sign() missing 1 required positional argument",
654+
get_token_error_text_part="Invalid Key type for ECAlgorithm",
655655
),
656656
DataForConfigTest(
657657
cfg_file="~/unknown-file.cfg",

ydb/_topic_reader/topic_reader_asyncio_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040

4141

4242
@pytest.fixture(autouse=True)
43-
def handle_exceptions(event_loop):
43+
async def handle_exceptions():
4444
def handler(loop, context):
4545
print(context)
4646

47-
event_loop.set_exception_handler(handler)
47+
asyncio.get_running_loop().set_exception_handler(handler)
4848

4949

5050
@pytest.fixture()

0 commit comments

Comments
 (0)