Summary: | dev-python/openapi-schema-validator-0.6.2 fails tests: assert Expected at most 4 items, but found 5 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arkamar |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/python-openapi/openapi-schema-validator/issues/153 https://github.com/python-openapi/openapi-schema-validator/pull/165 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
![]() Created attachment 883344 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: {'enum': ['NW', 'NE', 'SW', 'SE']}], {'enum': ['Street', 'Avenue', 'Boulevard']}, {'type': 'string'}, 'prefixItems': [{'type': 'number'}, 'type': 'array'} [1600, 'Pennsylvania', 'Avenue', 'NW', 'Washington']" = str(<ValidationError: "Expected at most 4 items but found 1 extra: 'Washington'">) {'items': False, E + where <ValidationError: "Expected at most 4 items but found 1 extra: 'Washington'"> = <ExceptionInfo <ValidationError: "Expected at most 4 items but found 1 extra: 'Washington'"> tblen=2>.value E + where "Expected at most 4 items but found 1 extra: 'Washington' FAILED tests/integration/test_validators.py::TestOAS31ValidatorValidate::test_array_prefixitems_invalid[value0] - assert 'Expected at most 4 items, but found 5' in "Expected at most 4 items... Failed validating 'items' in schema: On instance: excinfo = <ExceptionInfo <ValidationError: "Expected at most 4 items but found 1 extra: 'Washington'"> tblen=2> fatal: not a git repository (or any parent up to mount point /var/tmp) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d70da39f1d5092b911c83423b3362748ac5edcae commit d70da39f1d5092b911c83423b3362748ac5edcae Author: Petr Vaněk <arkamar@gentoo.org> AuthorDate: 2024-06-15 21:29:11 +0000 Commit: Petr Vaněk <arkamar@gentoo.org> CommitDate: 2024-06-16 08:11:05 +0000 dev-python/openapi-schema-validator: fix tests The issue was fixed upstream, see PR [1]. [1] https://github.com/python-openapi/openapi-schema-validator/pull/165 Closes: https://bugs.gentoo.org/923074 Signed-off-by: Petr Vaněk <arkamar@gentoo.org> .../openapi-schema-validator-0.6.2-test.patch | 24 ++++++++++++++++++++++ .../openapi-schema-validator-0.6.2.ebuild | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) |