From cc9b1289485c2330e856332bdbec49b3d308e332 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Mon, 17 Nov 2025 15:00:18 +0000 Subject: [PATCH 1/3] test(FIR-50880): Fix async tests --- pytest.ini | 2 +- setup.cfg | 1 + tests/integration/test_sqlalchemy_async_integration.py | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest.ini b/pytest.ini index c2c378f..b5c2498 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,4 @@ [pytest] -trio_mode = true +asyncio_mode = auto markers = core: mark test to run only on Firebolt Core. \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 4f51f65..15929c0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -49,6 +49,7 @@ dev = mypy==0.910 pre-commit==3.5.0 pytest==7.2.0 + pytest-asyncio==1.3.0 pytest-cov==3.0.0 pytest-trio==0.8.0 sqlalchemy-stubs==0.4 diff --git a/tests/integration/test_sqlalchemy_async_integration.py b/tests/integration/test_sqlalchemy_async_integration.py index 8573146..b93c964 100644 --- a/tests/integration/test_sqlalchemy_async_integration.py +++ b/tests/integration/test_sqlalchemy_async_integration.py @@ -5,7 +5,6 @@ from sqlalchemy.engine.base import Connection, Engine -@pytest.mark.skip("FIR-47589") @pytest.mark.usefixtures("setup_test_tables") class TestAsyncFireboltDialect: async def test_create_ex_table( From 4806748a28c54d13ca79594d81b6f805d02b02a3 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Mon, 17 Nov 2025 15:06:45 +0000 Subject: [PATCH 2/3] relax pytest-asyncio --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 15929c0..f3616e2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -49,7 +49,7 @@ dev = mypy==0.910 pre-commit==3.5.0 pytest==7.2.0 - pytest-asyncio==1.3.0 + pytest-asyncio==1.* pytest-cov==3.0.0 pytest-trio==0.8.0 sqlalchemy-stubs==0.4 From 290ba83798cc5dd3d8851085332528c33bced0b1 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Mon, 17 Nov 2025 15:09:39 +0000 Subject: [PATCH 3/3] pytest bump --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index f3616e2..9203a6c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -48,7 +48,7 @@ dev = mock==4.0.3 mypy==0.910 pre-commit==3.5.0 - pytest==7.2.0 + pytest==8.2.0 pytest-asyncio==1.* pytest-cov==3.0.0 pytest-trio==0.8.0