From 68d355b72d812cca4c59e129be2826cc3803d2a0 Mon Sep 17 00:00:00 2001 From: James Frost Date: Mon, 15 Jan 2024 15:43:49 +0000 Subject: [PATCH] Test no constraints given to filter_multiple_cubes --- tests/operators/test_filters.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/operators/test_filters.py b/tests/operators/test_filters.py index fe03346d1..956129e8e 100644 --- a/tests/operators/test_filters.py +++ b/tests/operators/test_filters.py @@ -78,6 +78,10 @@ def test_filter_multiple_cubes(): ) assert len(filtered_multi_cubes) == 2 + # Test exception when no constraints given. + with pytest.raises(ValueError): + filters.filter_multiple_cubes(raw_cubes) + # Test exception when multiple cubes returned. constraint_multiple = constraints.generate_stash_constraint("m01s03i236") with pytest.raises(ValueError):