From 833636d7cb05ab63b91c14f35e7a639228a7d5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=C3=A1n=20Mu=C3=B1oz?= <alan.munoz@ed.ac.uk> Date: Sat, 24 Sep 2022 17:53:44 +0100 Subject: [PATCH] tests(agora): check dummy yaml exists --- tests/agora/conftest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/agora/conftest.py b/tests/agora/conftest.py index 7125dc5e..17d2d402 100644 --- a/tests/agora/conftest.py +++ b/tests/agora/conftest.py @@ -15,7 +15,10 @@ def data_dir(): @pytest.fixture(scope="module") def yaml_file(data_dir: PosixPath): - return data_dir / "parameters.yaml" + data = data_dir / "parameters.yaml" + if not data.exists(): + pytest.fail(f"There is no file at {str( data_dir )}.") + return data @pytest.fixture(scope="module", autouse=True) -- GitLab