From 581c4535b0cde22dee169aaa51466d1037b18185 Mon Sep 17 00:00:00 2001 From: Eman Ali Date: Wed, 2 Oct 2024 17:31:00 +1000 Subject: [PATCH] add pytest-asyncio to test requirements and related config to pyproject.yaml --- pyproject.toml | 1 + test-requirements.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 47c59dd0..267b12be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,6 +78,7 @@ __version__ = "{version}" [tool.pytest.ini_options] addopts = "--ignore-glob=*/version.py --ignore-glob=*data_dir/*" testpaths = "." +asyncio_default_fixture_loop_scope="function" [tool.black] line-length = 110 diff --git a/test-requirements.txt b/test-requirements.txt index 4b4429e7..7637752e 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -8,3 +8,4 @@ pre-commit boto3 botocore playwright +pytest-asyncio