tests: add __init__.py in all directories #3233
Annotations
3 errors and 10 warnings
Run tests:
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):
|
Run tests:
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({})
|
Run tests
Process completed with exit code 1.
|
Run tests:
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/passlib/utils/__init__.py#L854
'crypt' is deprecated and slated for removal in Python 3.13
|
Run tests:
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.
|
Run tests:
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.
|
Run tests:
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.
|
Run tests:
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.
|
Run tests:
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.
|
Run tests:
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.
|
Run tests:
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.
|
Run tests:
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.
|
Run tests:
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
|
Loading