2023-09-01 03:56:21 +00:00
|
|
|
import pytest
|
2023-09-06 04:47:41 +00:00
|
|
|
from ..fixtures import nwb_core_fixture
|
2023-09-01 03:56:21 +00:00
|
|
|
|
|
|
|
from nwb_schema_language import Dataset, Group, Schema
|
|
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
|
|
['walk_class', 'known_number'],
|
|
|
|
[
|
|
|
|
(Dataset, 211),
|
|
|
|
(Group, 144),
|
|
|
|
((Dataset, Group), 355),
|
|
|
|
(Schema, 19)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
def test_walk_types(nwb_core_fixture, walk_class, known_number):
|
|
|
|
classes = nwb_core_fixture.walk_types(nwb_core_fixture, walk_class)
|
|
|
|
class_list = list(classes)
|
|
|
|
assert len(class_list) == known_number
|
|
|
|
|
|
|
|
# pdb.set_trace()
|
|
|
|
|
|
|
|
|
2023-09-06 04:47:41 +00:00
|
|
|
def test_build_result_add():
|
|
|
|
"""
|
|
|
|
Build results can
|
|
|
|
Returns:
|
|
|
|
|
|
|
|
"""
|