Skip to content

Commit

Permalink
test renaming channel given invalid channel label raises ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
whitews committed Aug 28, 2024
1 parent 60c4ec2 commit 3d41b88
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/sample_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,13 @@ def test_rename_channel(self):
self.assertEqual(chan_new, df_channels.loc[chan_idx].pnn)
self.assertEqual(chan_pns_new, df_channels.loc[chan_idx].pns)

def test_rename_channel_raises(self):
sample = copy.deepcopy(data1_sample)
chan_orig = 'asdf'
chan_new = 'CD4-H'

self.assertRaises(ValueError, sample.rename_channel, chan_orig, chan_new)

@staticmethod
def test_fully_custom_transform():
sample1 = Sample(fcs_path_or_data=data1_fcs_path)
Expand Down

0 comments on commit 3d41b88

Please sign in to comment.