diff options
Diffstat (limited to 'tests/functional/graphql/test_graphql.py')
-rw-r--r-- | tests/functional/graphql/test_graphql.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/graphql/test_graphql.py b/tests/functional/graphql/test_graphql.py new file mode 100644 index 0000000..6bba059 --- /dev/null +++ b/tests/functional/graphql/test_graphql.py @@ -0,0 +1,14 @@ +from gitlab import GraphQLGitlab + + +def test_graphql_query_current_user(graphql_gl: GraphQLGitlab): + query = """ +query { + currentUser { + username + } +} +""" + graphql_gl.enable_debug() + result = graphql_gl.execute(query) + assert result["user"]["username"] == "root" |