Unverified Commit 8f797af3 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

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

parents 1f2b2b8e 3a116ccc
Loading
Loading
Loading
Loading
+21 −7
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
  poetry-core,
  pytest-django,
  pytestCheckHook,
  stdenv,
}:

buildPythonPackage rec {
@@ -78,9 +79,20 @@ buildPythonPackage rec {
    REDIS_HOST = "127.0.0.1";
  };

  disabledTests = [
  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 = [
@@ -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 ];
  };
}