$ poetry run pytest
================================================================================================================================================= test session starts =================================================================================================================================================
platform linux -- Python 3.9.2, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/chriz/rz/code/invenio/repos/iridium/iridium, configfile: pyproject.toml
plugins: anyio-3.5.0, cov-3.0.0, dotenv-0.5.2
collected 14 items
tests/test_api.py EEE [ 21%]
tests/test_generic.py ... [ 42%]
tests/test_inveniordm_api.py EEEEEE [ 85%]
tests/test_utils.py .. [100%]
======================================================================================================================================================= ERRORS ========================================================================================================================================================
_________________________________________________________________________________________________________________________________________ ERROR at setup of test_vocab_query __________________________________________________________________________________________________________________________________________
@pytest.fixture(scope="session")
def rdm():
"""Return an low-level API instance configured from environment variables."""
cl = InvenioRDMClient.from_env(verify=False)
# clean up all drafts from possible previous unclean runs
if cl.connected():
> drafts = cl.query.records(user=True, q="is_published:false")
tests/conftest.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
iridium/inveniordm/__init__.py:202: in records
res.parse_hits(Record)
iridium/inveniordm/models/query.py:135: in parse_hits
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/query.py:135: in <listcomp>
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/base.py:66: in parse_obj
return cast(cls, super().parse_obj(val, *args, **kwargs))
pydantic/main.py:578: in pydantic.main.BaseModel.parse_obj
???
iridium/inveniordm/models/base.py:29: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E pydantic.error_wrappers.ValidationError: 1 validation error for Record
E is_draft
E extra fields not permitted (type=value_error.extra)
pydantic/main.py:406: ValidationError
____________________________________________________________________________________________________________________________________ ERROR at setup of test_readonly_fields_draft _____________________________________________________________________________________________________________________________________
@pytest.fixture(scope="session")
def rdm():
"""Return an low-level API instance configured from environment variables."""
cl = InvenioRDMClient.from_env(verify=False)
# clean up all drafts from possible previous unclean runs
if cl.connected():
> drafts = cl.query.records(user=True, q="is_published:false")
tests/conftest.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
iridium/inveniordm/__init__.py:202: in records
res.parse_hits(Record)
iridium/inveniordm/models/query.py:135: in parse_hits
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/query.py:135: in <listcomp>
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/base.py:66: in parse_obj
return cast(cls, super().parse_obj(val, *args, **kwargs))
pydantic/main.py:578: in pydantic.main.BaseModel.parse_obj
???
iridium/inveniordm/models/base.py:29: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E pydantic.error_wrappers.ValidationError: 1 validation error for Record
E is_draft
E extra fields not permitted (type=value_error.extra)
pydantic/main.py:406: ValidationError
________________________________________________________________________________________________________________________________________ ERROR at setup of test_create_record _________________________________________________________________________________________________________________________________________
@pytest.fixture(scope="session")
def rdm():
"""Return an low-level API instance configured from environment variables."""
cl = InvenioRDMClient.from_env(verify=False)
# clean up all drafts from possible previous unclean runs
if cl.connected():
> drafts = cl.query.records(user=True, q="is_published:false")
tests/conftest.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
iridium/inveniordm/__init__.py:202: in records
res.parse_hits(Record)
iridium/inveniordm/models/query.py:135: in parse_hits
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/query.py:135: in <listcomp>
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/base.py:66: in parse_obj
return cast(cls, super().parse_obj(val, *args, **kwargs))
pydantic/main.py:578: in pydantic.main.BaseModel.parse_obj
???
iridium/inveniordm/models/base.py:29: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E pydantic.error_wrappers.ValidationError: 1 validation error for Record
E is_draft
E extra fields not permitted (type=value_error.extra)
pydantic/main.py:406: ValidationError
_________________________________________________________________________________________________________________________________________ ERROR at setup of test_vocabularies _________________________________________________________________________________________________________________________________________
@pytest.fixture(scope="session")
def rdm():
"""Return an low-level API instance configured from environment variables."""
cl = InvenioRDMClient.from_env(verify=False)
# clean up all drafts from possible previous unclean runs
if cl.connected():
> drafts = cl.query.records(user=True, q="is_published:false")
tests/conftest.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
iridium/inveniordm/__init__.py:202: in records
res.parse_hits(Record)
iridium/inveniordm/models/query.py:135: in parse_hits
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/query.py:135: in <listcomp>
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/base.py:66: in parse_obj
return cast(cls, super().parse_obj(val, *args, **kwargs))
pydantic/main.py:578: in pydantic.main.BaseModel.parse_obj
???
iridium/inveniordm/models/base.py:29: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E pydantic.error_wrappers.ValidationError: 1 validation error for Record
E is_draft
E extra fields not permitted (type=value_error.extra)
pydantic/main.py:406: ValidationError
________________________________________________________________________________________________________________________________________ ERROR at setup of test_record_queries ________________________________________________________________________________________________________________________________________
@pytest.fixture(scope="session")
def rdm():
"""Return an low-level API instance configured from environment variables."""
cl = InvenioRDMClient.from_env(verify=False)
# clean up all drafts from possible previous unclean runs
if cl.connected():
> drafts = cl.query.records(user=True, q="is_published:false")
tests/conftest.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
iridium/inveniordm/__init__.py:202: in records
res.parse_hits(Record)
iridium/inveniordm/models/query.py:135: in parse_hits
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/query.py:135: in <listcomp>
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/base.py:66: in parse_obj
return cast(cls, super().parse_obj(val, *args, **kwargs))
pydantic/main.py:578: in pydantic.main.BaseModel.parse_obj
???
iridium/inveniordm/models/base.py:29: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E pydantic.error_wrappers.ValidationError: 1 validation error for Record
E is_draft
E extra fields not permitted (type=value_error.extra)
pydantic/main.py:406: ValidationError
__________________________________________________________________________________________________________________________________________ ERROR at setup of test_new_draft ___________________________________________________________________________________________________________________________________________
@pytest.fixture(scope="session")
def rdm():
"""Return an low-level API instance configured from environment variables."""
cl = InvenioRDMClient.from_env(verify=False)
# clean up all drafts from possible previous unclean runs
if cl.connected():
> drafts = cl.query.records(user=True, q="is_published:false")
tests/conftest.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
iridium/inveniordm/__init__.py:202: in records
res.parse_hits(Record)
iridium/inveniordm/models/query.py:135: in parse_hits
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/query.py:135: in <listcomp>
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/base.py:66: in parse_obj
return cast(cls, super().parse_obj(val, *args, **kwargs))
pydantic/main.py:578: in pydantic.main.BaseModel.parse_obj
???
iridium/inveniordm/models/base.py:29: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E pydantic.error_wrappers.ValidationError: 1 validation error for Record
E is_draft
E extra fields not permitted (type=value_error.extra)
pydantic/main.py:406: ValidationError
______________________________________________________________________________________________________________________________________ ERROR at setup of test_draft_from_record _______________________________________________________________________________________________________________________________________
@pytest.fixture(scope="session")
def rdm():
"""Return an low-level API instance configured from environment variables."""
cl = InvenioRDMClient.from_env(verify=False)
# clean up all drafts from possible previous unclean runs
if cl.connected():
> drafts = cl.query.records(user=True, q="is_published:false")
tests/conftest.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
iridium/inveniordm/__init__.py:202: in records
res.parse_hits(Record)
iridium/inveniordm/models/query.py:135: in parse_hits
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/query.py:135: in <listcomp>
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/base.py:66: in parse_obj
return cast(cls, super().parse_obj(val, *args, **kwargs))
pydantic/main.py:578: in pydantic.main.BaseModel.parse_obj
???
iridium/inveniordm/models/base.py:29: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E pydantic.error_wrappers.ValidationError: 1 validation error for Record
E is_draft
E extra fields not permitted (type=value_error.extra)
pydantic/main.py:406: ValidationError
_____________________________________________________________________________________________________________________________________ ERROR at setup of test_version_from_record ______________________________________________________________________________________________________________________________________
@pytest.fixture(scope="session")
def rdm():
"""Return an low-level API instance configured from environment variables."""
cl = InvenioRDMClient.from_env(verify=False)
# clean up all drafts from possible previous unclean runs
if cl.connected():
> drafts = cl.query.records(user=True, q="is_published:false")
tests/conftest.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
iridium/inveniordm/__init__.py:202: in records
res.parse_hits(Record)
iridium/inveniordm/models/query.py:135: in parse_hits
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/query.py:135: in <listcomp>
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/base.py:66: in parse_obj
return cast(cls, super().parse_obj(val, *args, **kwargs))
pydantic/main.py:578: in pydantic.main.BaseModel.parse_obj
???
iridium/inveniordm/models/base.py:29: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E pydantic.error_wrappers.ValidationError: 1 validation error for Record
E is_draft
E extra fields not permitted (type=value_error.extra)
pydantic/main.py:406: ValidationError
_________________________________________________________________________________________________________________________________________ ERROR at setup of test_access_links _________________________________________________________________________________________________________________________________________
@pytest.fixture(scope="session")
def rdm():
"""Return an low-level API instance configured from environment variables."""
cl = InvenioRDMClient.from_env(verify=False)
# clean up all drafts from possible previous unclean runs
if cl.connected():
> drafts = cl.query.records(user=True, q="is_published:false")
tests/conftest.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
iridium/inveniordm/__init__.py:202: in records
res.parse_hits(Record)
iridium/inveniordm/models/query.py:135: in parse_hits
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/query.py:135: in <listcomp>
self.hits.hits = [obj_cls.parse_obj(x) for x in self.hits.hits] # type: ignore
iridium/inveniordm/models/base.py:66: in parse_obj
return cast(cls, super().parse_obj(val, *args, **kwargs))
pydantic/main.py:578: in pydantic.main.BaseModel.parse_obj
???
iridium/inveniordm/models/base.py:29: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E pydantic.error_wrappers.ValidationError: 1 validation error for Record
E is_draft
E extra fields not permitted (type=value_error.extra)
pydantic/main.py:406: ValidationError
=============================================================================================================================================== short test summary info ===============================================================================================================================================
ERROR tests/test_api.py::test_vocab_query - pydantic.error_wrappers.ValidationError: 1 validation error for Record
ERROR tests/test_api.py::test_readonly_fields_draft - pydantic.error_wrappers.ValidationError: 1 validation error for Record
ERROR tests/test_api.py::test_create_record - pydantic.error_wrappers.ValidationError: 1 validation error for Record
ERROR tests/test_inveniordm_api.py::test_vocabularies - pydantic.error_wrappers.ValidationError: 1 validation error for Record
ERROR tests/test_inveniordm_api.py::test_record_queries - pydantic.error_wrappers.ValidationError: 1 validation error for Record
ERROR tests/test_inveniordm_api.py::test_new_draft - pydantic.error_wrappers.ValidationError: 1 validation error for Record
ERROR tests/test_inveniordm_api.py::test_draft_from_record - pydantic.error_wrappers.ValidationError: 1 validation error for Record
ERROR tests/test_inveniordm_api.py::test_version_from_record - pydantic.error_wrappers.ValidationError: 1 validation error for Record
ERROR tests/test_inveniordm_api.py::test_access_links - pydantic.error_wrappers.ValidationError: 1 validation error for Record
============================================================================================================================================= 5 passed, 9 errors in 1.90s =============================================================================================================================================
Looks like, there is an validation error. ;)
Maybe related: https://inveniordm.docs.cern.ch/releases/versions/version-v8.0.0/#my-dashboard
This also means we have changed the URL endpoint of the uploads page from `/uploads` to `/me/uploads` so that we can later add both `/me/communities` and `/me/requests`.
Edit: this seems to be an internal endpoint not an Rest-Api url-change.