MCPcopy Index your code
hub / github.com/geldata/gel / test_sql_native_query_02

Method test_sql_native_query_02

tests/test_sql_query.py:3071–3098  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3069 )
3070
3071 async def test_sql_native_query_02(self):
3072 await self.assert_sql_query_result(
3073 """
3074 SELECT
3075 "Movie".title,
3076 "Genre".name AS genre
3077 FROM
3078 "Movie",
3079 "Genre"
3080 WHERE
3081 "Movie".genre_id = "Genre".id
3082 AND "Genre".name = $1::text
3083 AND length("Movie".title) > $2::int
3084 ORDER BY
3085 title
3086 """,
3087 [
3088 {
3089 "title": "Saving Private Ryan",
3090 "genre": "Drama",
3091 }
3092 ],
3093 variables={
3094 "1": "Drama",
3095 "2": 14,
3096 },
3097 apply_access_policies=False,
3098 )
3099
3100 async def test_sql_native_query_03(self):
3101 # No output at all

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected