python3Packages.flask-expects-json: run some more tests
Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user