Files
scrapegraphai--scrapegraph-ai/tests/utils/parse_state_keys_test.py
T
wehub-resource-sync fbfefa28d3
CodeQL / Analyze (python) (push) Failing after 0s
Release / Build (push) Failing after 1s
Release / Release (push) Waiting to run
Test Suite / Unit Tests (push) Failing after 0s
chore: import upstream snapshot with attribution
2026-07-13 12:18:10 +08:00

22 lines
546 B
Python

"""
Parse_state_key test module
"""
from scrapegraphai.utils.parse_state_keys import parse_expression
def test_parse_expression():
"""Test parse_expression function."""
EXPRESSION = "user_input & (relevant_chunks | parsed_document | document)"
state = {
"user_input": None,
"document": None,
"parsed_document": None,
"relevant_chunks": None,
}
try:
result = parse_expression(EXPRESSION, state)
assert result != []
except ValueError as e:
assert "Error" in str(e)