Skip to content

Commit b112021

Browse files
Add filter tests
1 parent 948e65c commit b112021

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/unit/trace/dsl/test_filter.py

+11
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,17 @@ async def test_filter_translated(
232232
"span_annotation_0_label_00000000000000000000000000000000 is not None",
233233
id="double-quoted-annotation-name",
234234
),
235+
# Existence checks (bare annotation reference)
236+
pytest.param(
237+
"""evals['Hallucination']""",
238+
"span_annotation_0_exists_00000000000000000000000000000000",
239+
id="bare-evals-exists",
240+
),
241+
pytest.param(
242+
"""annotations['Hallucination']""",
243+
"span_annotation_0_exists_00000000000000000000000000000000",
244+
id="bare-annotations-exists",
245+
),
235246
],
236247
)
237248
def test_apply_eval_aliasing(filter_condition: str, expected: str) -> None:

0 commit comments

Comments
 (0)