From 64c00bac9d47480d5623ac155aa8ceec6f5316ea Mon Sep 17 00:00:00 2001 From: pauladkisson Date: Fri, 13 Dec 2024 10:09:30 -0800 Subject: [PATCH] added builder to the tests --- .../test_models/test_dataset_io_configuration_model.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_minimal/test_tools/test_backend_and_dataset_configuration/test_models/test_dataset_io_configuration_model.py b/tests/test_minimal/test_tools/test_backend_and_dataset_configuration/test_models/test_dataset_io_configuration_model.py index 616c6e9d4..9abb6aa25 100644 --- a/tests/test_minimal/test_tools/test_backend_and_dataset_configuration/test_models/test_dataset_io_configuration_model.py +++ b/tests/test_minimal/test_tools/test_backend_and_dataset_configuration/test_models/test_dataset_io_configuration_model.py @@ -2,6 +2,7 @@ import numpy as np import pytest +from pynwb import get_manager from pynwb.testing.mock.file import mock_NWBFile from neuroconv.tools.nwb_helpers import DatasetIOConfiguration @@ -89,8 +90,12 @@ def get_data_io_kwargs(self): data = np.array(["test", "string", "abc"], dtype=object) nwbfile.add_trial_column(name="test", description="test column with object dtype but all strings", data=data) neurodata_object = nwbfile.trials.columns[2] + manager = get_manager() + builder = manager.build(nwbfile) - dataset_io_configuration = TestDatasetIOConfiguration.from_neurodata_object(neurodata_object, dataset_name="data") + dataset_io_configuration = TestDatasetIOConfiguration.from_neurodata_object( + neurodata_object, dataset_name="data", builder=builder + ) assert dataset_io_configuration.chunk_shape == (3,) assert dataset_io_configuration.buffer_shape == (3,)