From 4f163ad3079533ba50ea1d7689369666d3f016f0 Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 19 Oct 2021 01:19:34 +0300 Subject: [PATCH] python3Packages.falcon: enable more tests --- .../python-modules/falcon/default.nix | 30 +++++++++++++++---- .../python-modules/mujson/default.nix | 1 + 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/falcon/default.nix b/pkgs/development/python-modules/falcon/default.nix index a42da353fc68..5dba22d83912 100644 --- a/pkgs/development/python-modules/falcon/default.nix +++ b/pkgs/development/python-modules/falcon/default.nix @@ -1,17 +1,28 @@ { lib , buildPythonPackage -, fetchPypi , pythonOlder +, fetchPypi +, pytestCheckHook , aiofiles , cbor2 +, ddt +, gunicorn , httpx +, hypercorn +, jsonschema , msgpack +, mujson +, nose +, orjson , pecan , pytest-asyncio -, pytestCheckHook +, python-mimeparse , pyyaml +, rapidjson , requests , testtools +, ujson +, uvicorn , websockets }: @@ -29,24 +40,31 @@ buildPythonPackage rec { checkInputs = [ aiofiles cbor2 + ddt + gunicorn httpx + hypercorn + jsonschema msgpack + mujson + nose + orjson pecan pytest-asyncio pytestCheckHook + python-mimeparse pyyaml + rapidjson requests testtools + ujson + uvicorn websockets ]; disabledTestPaths = [ # missing optional nuts package "falcon/bench/nuts/nuts/tests/test_functional.py" - # missing optional mujson package - "tests/test_media_handlers.py" - # tries to run uvicorn binary and doesn't find it - "tests/asgi/test_asgi_servers.py" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/mujson/default.nix b/pkgs/development/python-modules/mujson/default.nix index 55c028fc90cb..10f0e40b7626 100644 --- a/pkgs/development/python-modules/mujson/default.nix +++ b/pkgs/development/python-modules/mujson/default.nix @@ -21,6 +21,7 @@ buildPythonPackage rec { # No tests doCheck = false; + pythonImportsCheck = [ "mujson" ]; meta = with lib; { description = "Use the fastest JSON functions available at import time";