From 6081ccc910bbd2a9d239405f33cc79301c50d6b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 1 Oct 2024 17:52:40 +0200 Subject: [PATCH] python312Packages.gql: disable failing tests --- .../python-modules/gql/default.nix | 31 +++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/gql/default.nix b/pkgs/development/python-modules/gql/default.nix index 1a664c0e936e..f6067dab3b6d 100644 --- a/pkgs/development/python-modules/gql/default.nix +++ b/pkgs/development/python-modules/gql/default.nix @@ -33,7 +33,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "graphql-python"; - repo = pname; + repo = "gql"; rev = "refs/tags/v${version}"; hash = "sha256-jm0X+X8gQyQYn03gT14bdr79+Wd5KL9ryvrU/0VUtEU="; }; @@ -88,44 +88,37 @@ buildPythonPackage rec { export PATH=$out/bin:$PATH ''; - pytestFlagsArray = [ "--asyncio-mode=auto" ]; + pytestFlagsArray = [ + "--asyncio-mode=auto" + "-m 'not online'" + ]; disabledTests = [ # Tests requires network access + "test_async_client_validation_fetch_schema_from_server_valid_query" "test_execute_result_error" + "test_get_introspection_query_ast" + "test_header_query" + "test_hero_name_query" "test_http_transport" + "test_named_query" + "test_query_with_variable" ]; disabledTestPaths = [ # Exclude linter tests "gql-checker/tests/test_flake8_linter.py" "gql-checker/tests/test_pylama_linter.py" - # Tests require network access - "tests/custom_scalars/test_money.py" - "tests/test_aiohttp.py" - "tests/test_appsync_http.py" - "tests/test_appsync_websockets.py" - "tests/test_async_client_validation.py" - "tests/test_graphqlws_exceptions.py" - "tests/test_graphqlws_subscription.py" - "tests/test_phoenix_channel_exceptions.py" - "tests/test_phoenix_channel_exceptions.py" - "tests/test_phoenix_channel_query.py" - "tests/test_phoenix_channel_subscription.py" - "tests/test_requests.py" - "tests/test_websocket_exceptions.py" - "tests/test_websocket_query.py" - "tests/test_websocket_subscription.py" ]; pythonImportsCheck = [ "gql" ]; meta = with lib; { description = "GraphQL client in Python"; - mainProgram = "gql-cli"; homepage = "https://github.com/graphql-python/gql"; changelog = "https://github.com/graphql-python/gql/releases/tag/v${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; + mainProgram = "gql-cli"; }; }