python3Packages.drf-extra-fields: fix tests exclusion (#425428)

This commit is contained in:
Aleksana 2025-07-15 22:10:02 +08:00 committed by GitHub
commit d05947b42b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,16 +48,18 @@ buildPythonPackage rec {
pythonImportsCheck = [ "drf_extra_fields" ];
disabledTests = lib.optionals (pythonAtLeast "3.13") [
# https://github.com/Hipo/drf-extra-fields/issues/210
"test_read_source_with_context"
# pytz causes the following tests to fail
"test_create"
"test_create_with_base64_prefix"
"test_create_with_webp_image"
"test_remove_with_empty_string"
];
disabledTests =
[
# pytz causes the following tests to fail
"test_create"
"test_create_with_base64_prefix"
"test_create_with_webp_image"
"test_remove_with_empty_string"
]
++ lib.optionals (pythonAtLeast "3.13") [
# https://github.com/Hipo/drf-extra-fields/issues/210
"test_read_source_with_context"
];
meta = {
description = "Extra Fields for Django Rest Framework";