mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 13:39:15 +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,
|
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 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue