numpydantic/tests/test_linkml/test_ndarraygen.py
sneakers-the-rat 5d3cd95d84
docs
simple old style nwb-linkml test
2024-02-05 15:39:29 -08:00

14 lines
415 B
Python

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)