From 87c57ec2ccb514f9880dc69ad6a335ef6836c19e Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 30 Apr 2025 14:01:53 +0200 Subject: [PATCH] add selection test --- tests/test_selection.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_selection.py b/tests/test_selection.py index 6e56f2b..4982220 100644 --- a/tests/test_selection.py +++ b/tests/test_selection.py @@ -27,6 +27,15 @@ def test_consumption_off(): assert q.select({"expver": "0001"}, consume=False) == expected +def test_require_match(): + expected = Qube.from_dict( + { + "class=od": {"expver=0001": {"param=1": {}, "param=2": {}}}, + } + ) + assert q.select({"expver": "0001"}, require_match=True) == expected + + def test_function_input_to_select(): q = Qube.from_tree(""" root, frequency=6:00:00