Skip to content

Commit

Permalink
add unit test missing spike times
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandratrapani committed Sep 25, 2023
1 parent 38a8507 commit e7d0585
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit_tests/test_ecephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ def test_check_ascending_spike_times_pass():
assert check_ascending_spike_times(units_table=units_table) is None


def test_check_ascending_spike_times_w_missing_spike_times_pass():
units_table = Units()
units_table.add_unit(spike_times=[0.0, 0.1])
units_table.add_unit(spike_times=[])
assert check_ascending_spike_times(units_table=units_table) is None


def test_check_ascending_spike_times_fail():
units_table = Units(name="TestUnits")
units_table.add_unit(spike_times=[0.0, 0.1])
Expand Down

0 comments on commit e7d0585

Please sign in to comment.