Skip to content

Commit

Permalink
test for arbitrary top-level property
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-held committed Oct 1, 2024
1 parent d91af4e commit 88b2e41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 88b2e41

Please sign in to comment.