From 4a1986014a43e92be012880f9632c24f3d1e299d Mon Sep 17 00:00:00 2001 From: Andrew Tritt Date: Mon, 12 Nov 2018 10:57:27 -0800 Subject: [PATCH] fix broken integration test --- tests/integration/ui_write/test_ecephys.py | 6 ++++-- tests/integration/ui_write/test_ophys.py | 9 ++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/integration/ui_write/test_ecephys.py b/tests/integration/ui_write/test_ecephys.py index 0f9e44d39..3951e821b 100644 --- a/tests/integration/ui_write/test_ecephys.py +++ b/tests/integration/ui_write/test_ecephys.py @@ -24,8 +24,9 @@ def setUpContainer(self): def setUpBuilder(self): device_builder = GroupBuilder('dev1', + datasets={'description': DatasetBuilder('description', + data='a mock device for testing')}, attributes={'neurodata_type': 'Device', - 'description': 'a mock device for testing', 'namespace': 'core', 'help': 'A recording device e.g. amplifier'}) return GroupBuilder('elec1', @@ -68,8 +69,9 @@ def make_electrode_table(self): @staticmethod def get_table_builder(self): self.device_builder = GroupBuilder('dev1', + datasets={'description': DatasetBuilder('description', + data='a mock device for testing')}, attributes={'neurodata_type': 'Device', - 'description': 'a mock device for testing', 'namespace': 'core', 'help': 'A recording device e.g. amplifier'}) self.eg_builder = GroupBuilder('tetrode1', diff --git a/tests/integration/ui_write/test_ophys.py b/tests/integration/ui_write/test_ophys.py index 257f023d9..a173f51ef 100644 --- a/tests/integration/ui_write/test_ophys.py +++ b/tests/integration/ui_write/test_ophys.py @@ -42,8 +42,9 @@ def setUpBuilder(self): 'emission_lambda': DatasetBuilder('emission_lambda', 500.)}, ) device_builder = GroupBuilder('dev1', + datasets={'description': DatasetBuilder('description', + data='a mock device for testing')}, attributes={'neurodata_type': 'Device', - 'description': 'a mock device for testing', 'namespace': 'core', 'help': 'A recording device e.g. amplifier'}) return GroupBuilder( @@ -106,8 +107,9 @@ def setUpBuilder(self): 'emission_lambda': DatasetBuilder('emission_lambda', 500.)}, ) device_builder = GroupBuilder('dev1', + datasets={'description': DatasetBuilder('description', + data='a mock device for testing')}, attributes={'neurodata_type': 'Device', - 'description': 'a mock device for testing', 'namespace': 'core', 'help': 'A recording device e.g. amplifier'}) imgpln_builder = GroupBuilder( @@ -213,8 +215,9 @@ def get_plane_segmentation_builder(self): 'emission_lambda': DatasetBuilder('emission_lambda', 500.)}, ) device_builder = GroupBuilder('dev1', + datasets={'description': DatasetBuilder('description', + data='a mock device for testing')}, attributes={'neurodata_type': 'Device', - 'description': 'a mock device for testing', 'namespace': 'core', 'help': 'A recording device e.g. amplifier'}) self.imgpln_builder = GroupBuilder(