mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-10 00:34:29 +00:00
14 lines
415 B
Python
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)
|