Skip to content

Commit

Permalink
Test _sync_label function
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Jun 17, 2024
1 parent adff36a commit 5bbe29a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ibllib/tests/test_dynamic_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,13 @@ def test_get_trials_tasks(self):
# Should handle absent trials tasks
pipeline.tasks.pop('FooBarTrials')
self.assertEqual([], dyn.get_trials_tasks(self.session_path_legacy))


class TestMisc(unittest.TestCase):
"""Test miscellaneous functions in pipes.dynamic_pipeline."""
def test_sync_label(self):
"""Test pipes.dynamic_pipeline._sync_label function."""
self.assertEqual('nidq', dyn._sync_label('nidq'))
self.assertEqual('timeline', dyn._sync_label('nidq', acquisition_software='timeline'))
self.assertEqual('nidq', dyn._sync_label('nidq', acquisition_software='spikeglx'))
self.assertEqual('tdms', dyn._sync_label('tdms'))

0 comments on commit 5bbe29a

Please sign in to comment.