Merge pull request #220613 from K900/flask-expects-json-tests

python3Packages.flask-expects-json: run some more tests
This commit is contained in:
K900
2023-03-11 09:21:08 +03:00
committed by GitHub
@@ -3,6 +3,7 @@
, fetchFromGitHub
, flask
, jsonschema
, pytestCheckHook
}:
buildPythonPackage rec {
@@ -17,10 +18,31 @@ buildPythonPackage rec {
hash = "sha256-CUxuwqjjAb9Fy6xWtX1WtSANYaYr5//vY8k89KghYoQ=";
};
propagatedBuildInputs = [ flask jsonschema ];
propagatedBuildInputs = [
flask
jsonschema
] ++ flask.optional-dependencies.async;
# tests aren't included in sdist and don't pass on current flask
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"flask_expects_json"
];
disabledTests = [
# https://github.com/Fischerfredl/flask-expects-json/issues/26
"test_check_mimetype"
"test_default_behaviour"
"test_default_gets_validated"
"test_format_validation_rejection"
"test_ignore_multiple"
"test_ignore_one"
"test_valid_decorator_no_schema_async"
"test_valid_decorator"
"test_validation_invalid"
];
meta = with lib; {
homepage = "https://github.com/fischerfredl/flask-expects-json";