test_parse_disallowed_operator() — langchain Function Reference
Architecture documentation for the test_parse_disallowed_operator() function in test_parser.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f98b3039_4ad4_0eda_fae4_dde881d42ca9["test_parse_disallowed_operator()"] 064e0ca3_1663_b885_96b9_052c91c4e115["test_parser.py"] f98b3039_4ad4_0eda_fae4_dde881d42ca9 -->|defined in| 064e0ca3_1663_b885_96b9_052c91c4e115 style f98b3039_4ad4_0eda_fae4_dde881d42ca9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/chains/query_constructor/test_parser.py lines 78–81
def test_parse_disallowed_operator() -> None:
parser = get_parser(allowed_operators=[Operator.AND])
with pytest.raises(ValueError, match="Received disallowed operator not"):
parser.parse('not(gt("a", 2))')
Domain
Subdomains
Source
Frequently Asked Questions
What does test_parse_disallowed_operator() do?
test_parse_disallowed_operator() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/query_constructor/test_parser.py.
Where is test_parse_disallowed_operator() defined?
test_parse_disallowed_operator() is defined in libs/langchain/tests/unit_tests/chains/query_constructor/test_parser.py at line 78.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free