Skip to content

tests: add __init__.py in all directories #3233

tests: add __init__.py in all directories

tests: add __init__.py in all directories #3233

Triggered via pull request February 26, 2025 01:11
Status Failure
Total duration 6m 35s
Artifacts

tests.yml

on: pull_request
Matrix: Tests / Tests
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 20 warnings
Tests / Tests (3.9, postgresql14, opensearch2): tests/records/test_mockrecords_api.py#L1
isort-check from invenio_communities.communities.records.api import Community from invenio_communities.errors import SetDefaultCommunityError from tests.records.mock_module.api import MockRecord + @pytest.fixture() def c(app, db, location):
Tests / Tests (3.9, postgresql14, opensearch2): tests/records/test_mockrecords_api.py#L1
Black format check --- /home/runner/work/invenio-communities/invenio-communities/tests/records/test_mockrecords_api.py 2025-02-26 01:11:35.262785+00:00 +++ /home/runner/work/invenio-communities/invenio-communities/tests/records/test_mockrecords_api.py 2025-02-26 01:16:52.761127+00:00 @@ -13,10 +13,11 @@ from sqlalchemy.exc import IntegrityError from invenio_communities.communities.records.api import Community from invenio_communities.errors import SetDefaultCommunityError from tests.records.mock_module.api import MockRecord + @pytest.fixture() def c(app, db, location): """A community fixture.""" _c = Community.create({})
Tests / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Tests / Tests (3.12, postgresql14, opensearch2): tests/records/test_mockrecords_api.py#L1
isort-check from invenio_communities.communities.records.api import Community from invenio_communities.errors import SetDefaultCommunityError from tests.records.mock_module.api import MockRecord + @pytest.fixture() def c(app, db, location):
Tests / Tests (3.12, postgresql14, opensearch2): tests/records/test_mockrecords_api.py#L1
Black format check --- /home/runner/work/invenio-communities/invenio-communities/tests/records/test_mockrecords_api.py 2025-02-26 01:11:35.308085+00:00 +++ /home/runner/work/invenio-communities/invenio-communities/tests/records/test_mockrecords_api.py 2025-02-26 01:17:49.160750+00:00 @@ -13,10 +13,11 @@ from sqlalchemy.exc import IntegrityError from invenio_communities.communities.records.api import Community from invenio_communities.errors import SetDefaultCommunityError from tests.records.mock_module.api import MockRecord + @pytest.fixture() def c(app, db, location): """A community fixture.""" _c = Community.create({})
Tests / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
Tests / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
Tests / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
Tests / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Tests / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Tests / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Tests / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Tests / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Tests / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Tests / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_vocabularies/config.py#L15
Implicit imports (e.g., 'import idutils; idutils.function;') might be removed in the next major version. Please use explicit imports (e.g., 'from idutils import function;') instead.
Tests / Tests (3.9, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow/utils.py#L361
`Field` should not be instantiated. Use `fields.Raw` or another field subclass instead.
Tests / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
Tests / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
Tests / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Tests / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Tests / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Tests / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Tests / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
Tests / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
Tests / Tests (3.12, postgresql14, opensearch2): opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/fs/__init__.py#L4
Deprecated call to `pkg_resources.declare_namespace('fs')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages