nixpkgs/pkgs/development/python-modules/sanic-testing/tests.nix
Martin Weinelt 5035d7b650 python3Packages.sanic-testing: extract tests into passthru.pytest
Previously the pytestCheckHook had no meaning, since the tests were
always executed using by other means. Extracting the tests into a
dedicated package has become the standard way to escape infinite
recursion issues and offers a cleaner approach here.
2022-03-14 00:29:06 +01:00

27 lines
375 B
Nix

{ buildPythonPackage
, sanic
, sanic-testing
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage {
pname = "sanic-testing-tests";
inherit (sanic-testing) version;
src = sanic-testing.testsout;
dontBuild = true;
dontInstall = true;
checkInputs = [
pytest-asyncio
pytestCheckHook
sanic
];
pythonImportsCheck = [
"sanic_testing"
];
}