-
-
Notifications
You must be signed in to change notification settings - Fork 135
0.16.5: pytest is failing in few units #525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@kloczek thank you for this report. I think this is because of backward incompatibility introduced here |
Version 0.16.6 released with the fix hence closing. |
Just tested 0.16.6 and test site passes without errors/fauls. + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-openapi-core-0.16.6-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-openapi-core-0.16.6-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.8.16, pytest-7.2.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/openapi-core-0.16.6, configfile: pyproject.toml
plugins: anyio-3.6.2, flake8-1.1.1
collected 735 items
tests/integration/contrib/django/test_django_project.py Bad Request: /v1/pets
..Bad Request: /v1/pets
.Bad Request: /v1/pets
.Unsupported Media Type: /v1/pets
.Bad Request: /v1/pets
...Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.
Bad Request: /v1/pets/12
.Forbidden: /v1/pets/12
.Method Not Allowed: /v1/pets/12
...
tests/integration/contrib/falcon/test_falcon_project.py .............
tests/integration/contrib/flask/test_flask_decorator.py ......
tests/integration/contrib/flask/test_flask_validator.py .
tests/integration/contrib/flask/test_flask_views.py .......
tests/integration/contrib/requests/test_requests_validation.py ...
tests/integration/contrib/starlette/test_starlette_validation.py ..
tests/integration/contrib/werkzeug/test_werkzeug_validation.py ...
tests/integration/schema/test_empty.py .
tests/integration/schema/test_link_spec.py ....
tests/integration/schema/test_path_params.py ..
tests/integration/schema/test_spec.py ..
tests/integration/validation/test_minimal.py ............................................................
tests/integration/validation/test_petstore.py .....................................
tests/integration/validation/test_read_only_write_only.py ....
tests/integration/validation/test_security_override.py .....
tests/integration/validation/test_validators.py ............................
tests/unit/test_util.py .................
tests/unit/casting/test_schema_casters.py ....
tests/unit/contrib/django/test_django.py ......
tests/unit/contrib/flask/test_flask_requests.py ...
tests/unit/contrib/flask/test_flask_responses.py .
tests/unit/contrib/requests/test_requests_requests.py ...
tests/unit/contrib/requests/test_requests_responses.py .
tests/unit/deserializing/test_media_types_deserializers.py .........
tests/unit/deserializing/test_parameters_deserializers.py ...
tests/unit/extensions/test_factories.py ..
tests/unit/schema/test_schema_parameters.py .....................................................................................................................................................
tests/unit/security/test_providers.py .........
tests/unit/templating/test_media_types_finders.py ....
tests/unit/templating/test_paths_finders.py X..x..x...........X..x..x...........
tests/unit/templating/test_responses_finders.py ...
tests/unit/templating/test_templating_util.py ..
tests/unit/unmarshalling/test_unmarshal.py ....................................................................x.........................
tests/unit/unmarshalling/test_validate.py ..................................................................................................................................................................................................
tests/unit/validation/test_request_shortcuts.py ..
tests/unit/validation/test_response_shortcuts.py ..
=============================== warnings summary ===============================
tests/integration/contrib/django/test_django_project.py::TestPetListView::test_get_no_required_param
/usr/lib/python3.8/site-packages/django/conf/__init__.py:229: RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with Django 5.0, localized formatting of data will always be enabled. For example Django will display numbers and dates using the format of the current locale.
warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning)
tests/integration/contrib/django/test_django_project.py: 96 warnings
tests/integration/contrib/falcon/test_falcon_project.py: 78 warnings
tests/integration/contrib/flask/test_flask_decorator.py: 2 warnings
tests/integration/contrib/flask/test_flask_validator.py: 5 warnings
tests/integration/contrib/flask/test_flask_views.py: 3 warnings
tests/integration/contrib/requests/test_requests_validation.py: 10 warnings
tests/integration/contrib/starlette/test_starlette_validation.py: 5 warnings
tests/integration/contrib/werkzeug/test_werkzeug_validation.py: 10 warnings
tests/integration/validation/test_petstore.py: 146 warnings
tests/integration/validation/test_read_only_write_only.py: 5 warnings
tests/integration/validation/test_security_override.py: 3 warnings
tests/integration/validation/test_validators.py: 51 warnings
tests/unit/unmarshalling/test_unmarshal.py: 4 warnings
tests/unit/unmarshalling/test_validate.py: 194 warnings
/usr/lib/python3.8/site-packages/openapi_schema_validator/validators.py:120: DeprecationWarning: write property is deprecated. Use OAS30WriteValidator instead.
warnings.warn(
tests/integration/contrib/django/test_django_project.py: 61 warnings
tests/integration/contrib/falcon/test_falcon_project.py: 61 warnings
tests/integration/contrib/flask/test_flask_decorator.py: 5 warnings
tests/integration/contrib/flask/test_flask_views.py: 8 warnings
tests/integration/contrib/requests/test_requests_validation.py: 4 warnings
tests/integration/contrib/starlette/test_starlette_validation.py: 4 warnings
tests/integration/contrib/werkzeug/test_werkzeug_validation.py: 4 warnings
tests/integration/validation/test_petstore.py: 161 warnings
tests/integration/validation/test_read_only_write_only.py: 5 warnings
tests/integration/validation/test_validators.py: 20 warnings
tests/unit/unmarshalling/test_unmarshal.py: 25 warnings
/usr/lib/python3.8/site-packages/openapi_schema_validator/validators.py:113: DeprecationWarning: read property is deprecated. Use OAS30ReadValidator instead.
warnings.warn(
tests/integration/contrib/requests/test_requests_validation.py::TestRequestsOpenAPIValidation::test_response_validator_path_pattern
/usr/lib/python3.8/site-packages/responses/__init__.py:421: DeprecationWarning: Argument 'match_querystring' is deprecated. Use 'responses.matchers.query_param_matcher' or 'responses.matchers.query_string_matcher'
warn(
tests/unit/unmarshalling/test_unmarshal.py::TestOAS30SchemaUnmarshallerUnmarshal::test_schema_custom_format_invalid
tests/unit/unmarshalling/test_unmarshal.py::TestOAS30SchemaUnmarshallerCall::test_string_format_custom
tests/unit/unmarshalling/test_unmarshal.py::TestOAS30SchemaUnmarshallerCall::test_string_format_custom_value_error
/home/tkloczko/rpmbuild/BUILDROOT/python-openapi-core-0.16.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/openapi_core/unmarshalling/schemas/formatters.py:28: DeprecationWarning: Unmarshal method is deprecated. Rename unmarshal method to format instead.
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: /home/tkloczko/rpmbuild/BUILD/openapi-core-0.16.6/reports/junit.xml -
=========================== short test summary info ============================
XFAIL tests/unit/templating/test_paths_finders.py::TestOperationSimpleServerServerNotFound::test_raises - returns default server
XFAIL tests/unit/templating/test_paths_finders.py::TestPathSimpleServerServerNotFound::test_raises - returns default server
XFAIL tests/unit/templating/test_paths_finders.py::TestOperationVariableServerServerNotFound::test_raises - returns default server
XFAIL tests/unit/templating/test_paths_finders.py::TestPathVariableServerServerNotFound::test_raises - returns default server
XFAIL tests/unit/unmarshalling/test_unmarshal.py::TestOAS30SchemaUnmarshallerCall::test_null_not_supported
XPASS tests/unit/templating/test_paths_finders.py::TestSpecSimpleServerServerNotFound::test_raises returns default server
XPASS tests/unit/templating/test_paths_finders.py::TestSpecVariableServerServerNotFound::test_raises returns default server
=========== 728 passed, 5 xfailed, 2 xpassed, 975 warnings in 4.16s ============ |
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: