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,
pytest-django,
pytestCheckHook,
stdenv,
}:
buildPythonPackage rec {
@ -78,10 +79,21 @@ buildPythonPackage rec {
REDIS_HOST = "127.0.0.1";
};
disabledTests = [
# requires a running mongodb
"test_mongo"
];
disabledTests =
[
# requires a running mongodb
"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 = [
"django_q/tests/test_commands.py"
@ -89,11 +101,13 @@ buildPythonPackage rec {
pytestFlagsArray = [ "-vv" ];
meta = with lib; {
__darwinAllowLocalNetworking = true;
meta = {
description = "Multiprocessing distributed task queue for Django based on Django-Q";
homepage = "https://github.com/django-q2/django-q2";
changelog = "https://github.com/django-q2/django-q2/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
}