MCPcopy Index your code
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / test_parse_expression

Function test_parse_expression

tests/utils/parse_state_keys_test.py:8–21  ·  view source on GitHub ↗

Test parse_expression function.

()

Source from the content-addressed store, hash-verified

6
7
8def test_parse_expression():
9 """Test parse_expression function."""
10 EXPRESSION = "user_input & (relevant_chunks | parsed_document | document)"
11 state = {
12 "user_input": None,
13 "document": None,
14 "parsed_document": None,
15 "relevant_chunks": None,
16 }
17 try:
18 result = parse_expression(EXPRESSION, state)
19 assert result != []
20 except ValueError as e:
21 assert "Error" in str(e)

Callers

nothing calls this directly

Calls 1

parse_expressionFunction · 0.90

Tested by

no test coverage detected