From bd5f2f6d841333134a55dfd4e8e1769917250554 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 18 Apr 2026 00:54:44 +0200 Subject: [PATCH] python3Packages.graphene-django: disable failing tests With Django 6.0 two tests are failing. Also clears other disabled tests that have been fixed a while ago. --- .../graphene-django/default.nix | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/graphene-django/default.nix b/pkgs/development/python-modules/graphene-django/default.nix index af0d378ac86a..3a17e86a80a9 100644 --- a/pkgs/development/python-modules/graphene-django/default.nix +++ b/pkgs/development/python-modules/graphene-django/default.nix @@ -58,17 +58,15 @@ buildPythonPackage rec { pytest7CheckHook ]; - disabledTests = [ - # https://github.com/graphql-python/graphene-django/issues/1510 - "test_should_filepath_convert_string" - "test_should_choice_convert_enum" - "test_should_multiplechoicefield_convert_to_list_of_enum" - "test_perform_mutate_success_with_enum_choice_field" - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - # this test touches files in the "/" directory and fails in darwin sandbox - "test_should_filepath_convert_string" - ]; + disabledTests = + lib.optionals (lib.versionAtLeast django.version "6.0") [ + "test_global_id_field_explicit" + "test_global_id_field_implicit" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # this test touches files in the "/" directory and fails in darwin sandbox + "test_should_filepath_convert_string" + ]; meta = { description = "Integrate GraphQL into your Django project";