From 88b2e41e2385fe941cbf154cb6d54fc3c75acfc4 Mon Sep 17 00:00:00 2001 From: Alexander Held Date: Tue, 1 Oct 2024 17:14:18 +0200 Subject: [PATCH] test for arbitrary top-level property --- tests/test_configuration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_configuration.py b/tests/test_configuration.py index d564bc4e..807214c6 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -23,12 +23,13 @@ def test_validate(): } assert configuration.validate(config_valid) - # not exactly one data sample + # not exactly one data sample, custom additional top-level properties config_multiple_data_samples = { "General": {"Measurement": "", "HistogramFolder": "", "InputPath": ""}, "Regions": [{"Name": "", "Filter": "", "Variable": "", "Binning": [0, 1]}], "Samples": [{"Name": "", "Tree": ""}], "NormFactors": [{"Name": ""}], + "ABC": [], } with pytest.raises( NotImplementedError, match="can only handle cases with exactly one data sample"