From d602ad5ba7b8ea1d61f5e0bc27a265c6dbfc45b2 Mon Sep 17 00:00:00 2001 From: Marcus Hughes Date: Thu, 18 Jul 2024 13:19:44 -0600 Subject: [PATCH] adds failure test for no out angles --- tests/test_core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_core.py b/tests/test_core.py index 82ebdb0..3ce3e10 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -284,6 +284,11 @@ def test_btbr_to_npol(btbr_ones): assert isinstance(result, NDCollection) +def test_btbr_to_npol_missing_out_angles(btbr_ones): + with pytest.raises(ValueError): + resolve(btbr_ones, "npol") + + def test_imax_effect(mzp_data): result = resolve(mzp_data, "MZP", imax_effect=True) assert isinstance(result, NDCollection)