Skip to content

Commit e32adb9

Browse files
committed
Assert more properties on parsed AST result
1 parent eb7d3d6 commit e32adb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extra/test_hypothesis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ def test_parser_api_from_str(expr):
8585
except Exception as e:
8686
raise AssertionError("Non JMESPathError raised: %s" % e)
8787
assert isinstance(ast.parsed, dict)
88+
assert 'type' in ast.parsed
89+
assert 'children' in ast.parsed
90+
assert isinstance(ast.parsed['children'], list)
8891

8992

9093
@settings(**BASE_SETTINGS)

0 commit comments

Comments
 (0)