From 2f20628a5c2b7dbf11e5300161910a8a62302ac7 Mon Sep 17 00:00:00 2001 From: ehsanmok <6980212+ehsanmok@users.noreply.github.com> Date: Wed, 26 Apr 2023 18:09:05 -0700 Subject: [PATCH] Add pytest asynio mode config --- clients/python/pyproject.toml | 5 ++++- server/pyproject.toml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/clients/python/pyproject.toml b/clients/python/pyproject.toml index d883af37..00bb99fc 100644 --- a/clients/python/pyproject.toml +++ b/clients/python/pyproject.toml @@ -21,6 +21,9 @@ pytest = "^6.2.5" pytest-asyncio = "^0.17.2" pytest-cov = "^3.0.0" +[tool.pytest.ini_options] +asyncio_mode = "auto" + [build-system] -requires = ["poetry-core"] +requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" diff --git a/server/pyproject.toml b/server/pyproject.toml index 22aa41db..fd311e58 100644 --- a/server/pyproject.toml +++ b/server/pyproject.toml @@ -35,6 +35,9 @@ bnb = ["bitsandbytes"] grpcio-tools = "^1.51.1" pytest = "^7.3.0" +[tool.pytest.ini_options] +asyncio_mode = "auto" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"