Skip to content

Commit

Permalink
cleaning (#709)
Browse files Browse the repository at this point in the history
Co-authored-by: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com>
  • Loading branch information
bendichter and CodyCBakerPhD authored Jan 19, 2024
1 parent 1024c78 commit 9d7d216
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
12 changes: 1 addition & 11 deletions tests/test_ecephys/test_tools_spikeinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ def test_string_unit_names(self):
self.assertListEqual(unit_names_in_units_table, expected_unit_names_in_units_table)

def test_non_overwriting_unit_names_sorting_property(self):
"add_units_table function should not ovewrtie the sorting object unit_name property"
"add_units_table function should not overwrite the sorting object unit_name property"
unit_names = ["name a", "name b", "name c", "name d"]
self.sorting_1.set_property(key="unit_name", values=unit_names)
add_units_table(sorting=self.sorting_1, nwbfile=self.nwbfile)
Expand Down Expand Up @@ -942,16 +942,6 @@ def test_string_unit_names_overwrite(self):
unit_names_in_units_table = list(self.nwbfile.units["unit_name"].data)
self.assertListEqual(unit_names_in_units_table, expected_unit_names_in_units_table)

def test_non_overwriting_unit_names_sorting_property(self):
"add_units_table function should not ovewrtie the sorting object unit_name property"
unit_names = ["name a", "name b", "name c", "name d"]
self.sorting_1.set_property(key="unit_name", values=unit_names)
add_units_table(sorting=self.sorting_1, nwbfile=self.nwbfile)

expected_unit_names_in_units_table = unit_names
unit_names_in_units_table = list(self.nwbfile.units["unit_name"].data)
self.assertListEqual(unit_names_in_units_table, expected_unit_names_in_units_table)

def test_common_property_extension(self):
"""Add a property for a first sorting that is then extended by a second sorting."""
self.sorting_1.set_property(key="common_property", values=["value_1"] * self.num_units)
Expand Down
3 changes: 0 additions & 3 deletions tests/test_minimal/test_metadata_schema.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import traceback
import unittest
from pathlib import Path

import jsonschema
import pytest

from neuroconv.utils import load_dict_from_file
from neuroconv.utils.json_schema import validate_metadata
Expand Down
2 changes: 1 addition & 1 deletion tests/test_on_data/test_behavior_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def check_metadata(self):
assert metadata["NWBFile"]["session_start_time"] == datetime(2023, 5, 15, 10, 35, 29)


class TestSLEAPInterface(TestCase):
class CustomTestSLEAPInterface(TestCase):
savedir = OUTPUT_PATH

@parameterized.expand(
Expand Down

0 comments on commit 9d7d216

Please sign in to comment.