python3Packages.django-q2: disable failing tests on darwin tests (#405998)

This commit is contained in:
Sandro 2025-05-12 17:53:58 +02:00 committed by GitHub
commit 8f797af34d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,6 +14,7 @@
poetry-core, poetry-core,
pytest-django, pytest-django,
pytestCheckHook, pytestCheckHook,
stdenv,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -78,9 +79,20 @@ buildPythonPackage rec {
REDIS_HOST = "127.0.0.1"; REDIS_HOST = "127.0.0.1";
}; };
disabledTests = [ disabledTests =
[
# requires a running mongodb # requires a running mongodb
"test_mongo" "test_mongo"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# fails with an assertion
"test_max_rss"
"test_recycle"
# cannot connect to redis
"test_broker"
"test_custom"
"test_redis"
"test_redis_connection"
]; ];
disabledTestPaths = [ disabledTestPaths = [
@ -89,11 +101,13 @@ buildPythonPackage rec {
pytestFlagsArray = [ "-vv" ]; pytestFlagsArray = [ "-vv" ];
meta = with lib; { __darwinAllowLocalNetworking = true;
meta = {
description = "Multiprocessing distributed task queue for Django based on Django-Q"; description = "Multiprocessing distributed task queue for Django based on Django-Q";
homepage = "https://github.com/django-q2/django-q2"; homepage = "https://github.com/django-q2/django-q2";
changelog = "https://github.com/django-q2/django-q2/releases/tag/v${version}"; changelog = "https://github.com/django-q2/django-q2/releases/tag/v${version}";
license = licenses.mit; license = lib.licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ]; maintainers = with lib.maintainers; [ SuperSandro2000 ];
}; };
} }