MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / test_simple_params

Method test_simple_params

tests/flow/test_params.py:20–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 self.env.flush()
19
20 def test_simple_params(self):
21 params = [1, 2.3, -1, -2.3, "str", True, False, None, [0, 1, 2]]
22 query = "RETURN $param"
23 for param in params:
24 expected_results = [[param]]
25 query_info = QueryInfo(query = query, description="Tests simple params", expected_result = expected_results)
26 self._assert_resultset_equals_expected(redis_graph.query(query, {'param': param}), query_info)
27
28 def test_invalid_param(self):
29 invalid_queries = [

Callers

nothing calls this directly

Calls 3

QueryInfoClass · 0.90
queryMethod · 0.45

Tested by

no test coverage detected