From 0ae59520020aecbb263c181140114674c6b9d441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Mon, 12 Oct 2026 16:15:48 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=AA=A8=E6=9E=B6=E5=AE=A1=E6=9F=A5?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=88venv/=E8=A6=86=E7=9B=96=E7=8E=87?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=20+=20pytest-asyncio=20=E4=B8=8B=E7=95=8C?= =?UTF-8?q?=E4=B8=8E=20loop=20scope=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- .gitignore | 5 +++++ pytest.ini | 1 + requirements-dev.txt | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 307a554..1a51449 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,8 @@ admin/node_modules/ admin/dist/ .playwright-mcp/ .worktrees/ +.venv/ +venv/ +.coverage +htmlcov/ +*.egg-info/ diff --git a/pytest.ini b/pytest.ini index 78c5011..64baef7 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,4 @@ [pytest] asyncio_mode = auto +asyncio_default_fixture_loop_scope = function testpaths = tests diff --git a/requirements-dev.txt b/requirements-dev.txt index ee4ba01..a198e1d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,2 +1,2 @@ pytest -pytest-asyncio +pytest-asyncio>=0.24