From 878a2fc92a60631c13ede1ebba44428acb04d81a Mon Sep 17 00:00:00 2001 From: "gitauto-for-dev[bot]" <160085510+gitauto-for-dev[bot]@users.noreply.github.com> Date: Tue, 11 Feb 2025 20:58:34 +0000 Subject: [PATCH 1/2] Update tests/integration/test_graphql_client.py --- tests/integration/test_graphql_client.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/integration/test_graphql_client.py diff --git a/tests/integration/test_graphql_client.py b/tests/integration/test_graphql_client.py new file mode 100644 index 00000000..5cd1ea36 --- /dev/null +++ b/tests/integration/test_graphql_client.py @@ -0,0 +1,17 @@ +import pytest +from gql import Client +from services.github.graphql_client import get_graphql_client +from tests.constants import TOKEN + + +def test_get_graphql_client_integration(): + """ + Integration test for get_graphql_client + + This test creates a GraphQL client for the GitHub API using the token from + tests/constants.py. It verifies that the client is an instance of gql.Client. + + For more details, refer to the GitHub GraphQL API docs: https://docs.github.com/en/graphql + """ + client = get_graphql_client(TOKEN) + assert isinstance(client, Client) From 0085b022c57387e621ec06de8f897be4014ba3f6 Mon Sep 17 00:00:00 2001 From: "gitauto-for-dev[bot]" <160085510+gitauto-for-dev[bot]@users.noreply.github.com> Date: Tue, 11 Feb 2025 21:03:09 +0000 Subject: [PATCH 2/2] Update tests/services/supabase/test_users_manager.py --- tests/services/supabase/test_users_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/services/supabase/test_users_manager.py b/tests/services/supabase/test_users_manager.py index 7d7910a9..2ce2cdf4 100644 --- a/tests/services/supabase/test_users_manager.py +++ b/tests/services/supabase/test_users_manager.py @@ -229,8 +229,8 @@ async def test_install_uninstall_install() -> None: .eq(column="owner_id", value=OWNER_ID) .execute() ) - assert owners_data[1][0]["owner_id"] == OWNER_ID - assert isinstance(owners_data[1][0]["stripe_customer_id"], str) + assert owners_data[0]["owner_id"] == OWNER_ID + assert isinstance(owners_data[0]["stripe_customer_id"], str) # Check Installation Record installation_data, _ = (