mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
python3Packages.django-q2: disable failing tests on darwin tests (#405998)
This commit is contained in:
commit
8f797af34d
1 changed files with 21 additions and 7 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue