Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flow test to validate #967

Merged
merged 2 commits into from
Feb 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/flow/test_query_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,14 @@ def test15_dont_crash_on_multiple_errors(self):
except redis.exceptions.ResponseError:
# Expecting an error.
pass

# Run a query in which a parsed parameter introduces a type in an unsupported context.
def test16_param_introduces_unhandled_type(self):
try:
query = """CYPHER props={a:1,b:2} CREATE (a:A $props)"""
redis_graph.query(query)
assert(False)
except redis.exceptions.ResponseError as e:
# Expecting an error.
assert("Encountered unhandled type" in e.message)
pass