From 14250d6fbc9bdcd568d06ab29d1aab754a66d9cb Mon Sep 17 00:00:00 2001 From: Lennart Purucker Date: Fri, 18 Oct 2024 11:15:26 +0200 Subject: [PATCH] test: make scope function as individual functions might change the server --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 79ee2bbd3..32869945a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -263,7 +263,7 @@ def as_robot() -> Iterator[None]: openml.config.set_retry_policy(policy, n_retries) -@pytest.fixture(autouse=True, scope="session") +@pytest.fixture(autouse=True, scope="function") def with_test_server(): openml.config.start_using_configuration_for_example() yield