numpydantic/tests/test_linkml/test_ndarraygen.py

15 lines
415 B
Python
Raw Normal View History

2024-02-05 23:39:29 +00:00
import pytest
from numpydantic.linkml import ArrayFormat, NWBLinkMLArraylike
from ..fixtures import nwb_linkml_array
def test_nwb_linkml_array(nwb_linkml_array):
classdef, generated = nwb_linkml_array
assert ArrayFormat.is_array(classdef)
assert NWBLinkMLArraylike.check(classdef)
assert ArrayFormat.get(classdef) is NWBLinkMLArraylike
assert generated == NWBLinkMLArraylike.make(classdef)