From e930ae7cb9d2451fd9e52d9bf061ee2486068b9b Mon Sep 17 00:00:00 2001 From: mibe Date: Wed, 5 Jun 2024 18:22:47 +0100 Subject: [PATCH] #279 Fixing the fixtures [run-notebook-tests] --- test/notebooks/notebook_test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/notebooks/notebook_test_utils.py b/test/notebooks/notebook_test_utils.py index 3ef0efe4..c0c034d9 100644 --- a/test/notebooks/notebook_test_utils.py +++ b/test/notebooks/notebook_test_utils.py @@ -181,9 +181,9 @@ def access_to_temp_secret_store(request, """ if request.param == StorageBackend.onprem: with access_to_temp_onprem_secret_store(tmp_path) as onprem_store: - return onprem_store + yield onprem_store elif request.param == StorageBackend.saas: - return access_to_temp_saas_secret_store + yield access_to_temp_saas_secret_store else: raise ValueError(('Unrecognised testing backend in the access_to_temp_secret_store. ' 'Should be either "onprem" or "saas"'))