2023-08-22 04:43:02 +00:00
|
|
|
import pytest
|
|
|
|
from .fixtures import nwb_core_fixture
|
|
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
|
|
['class_name','schema_file','namespace_name'],
|
|
|
|
[
|
|
|
|
('DynamicTable', 'table.yaml', 'hdmf-common'),
|
|
|
|
('Container', 'base.yaml', 'hdmf-common'),
|
|
|
|
('TimeSeries', 'nwb.base.yaml', 'core'),
|
|
|
|
('ImageSeries', 'nwb.image.yaml', 'core')
|
|
|
|
]
|
|
|
|
)
|
|
|
|
def test_find_type_source(nwb_core_fixture, class_name, schema_file, namespace_name):
|
|
|
|
defining_sch = nwb_core_fixture.find_type_source(class_name)
|
|
|
|
assert defining_sch.path.name == schema_file
|
|
|
|
assert namespace_name == defining_sch.namespace
|
|
|
|
|
|
|
|
|
|
|
|
def test_populate_imports(nwb_core_fixture):
|
2023-09-01 03:56:21 +00:00
|
|
|
nwb_core_fixture.populate_imports()
|