Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[numcodecs.codecs]
1 change: 1 addition & 0 deletions numcodecs/tests/package_without_entrypoint/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from numcodecs.abc import Codec
5 changes: 5 additions & 0 deletions numcodecs/tests/test_entrypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def set_path():
numcodecs.registry.codec_registry.pop("test")


def test_no_entrypoint_codec():
cls = numcodecs.registry.get_codec({"id": "test"})
assert cls.codec_id == "test"


@pytest.mark.usefixtures("set_path")
def test_entrypoint_codec():
cls = numcodecs.registry.get_codec({"id": "test"})
Expand Down
Loading