Skip to content

Commit db5f8be

Browse files
committed
Test without entrypoint
1 parent 169db1b commit db5f8be

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[numcodecs.codecs]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from numcodecs.abc import Codec

numcodecs/tests/test_entrypoints.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ def set_path():
1818
numcodecs.registry.codec_registry.pop("test")
1919

2020

21+
def test_no_entrypoint_codec():
22+
cls = numcodecs.registry.get_codec({"id": "test"})
23+
assert cls.codec_id == "test"
24+
25+
2126
@pytest.mark.usefixtures("set_path")
2227
def test_entrypoint_codec():
2328
cls = numcodecs.registry.get_codec({"id": "test"})

0 commit comments

Comments
 (0)