From 782360990e02b52d64b99ee1e4af97c5196ea939 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Fri, 17 May 2024 16:36:17 -0700 Subject: [PATCH] use module scope to fix pytest stdout --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index c716dec..4687635 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -70,7 +70,7 @@ FLOAT: TypeAlias = NDArray[Shape["*, *, *"], Float] @pytest.fixture( - scope="session", + scope="module", params=[ ValidationCase(shape=(10, 10, 10), passes=True), ValidationCase(shape=(10, 10), passes=False), @@ -107,7 +107,7 @@ def shape_cases(request) -> ValidationCase: @pytest.fixture( - scope="session", + scope="module", params=[ ValidationCase(dtype=float, passes=True), ValidationCase(dtype=int, passes=False),