Commit b390f7f 1 parent f75c583 commit b390f7f Copy full SHA for b390f7f
File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -733,7 +733,7 @@ def test_extra_commas(self):
733
733
734
734
def test_underscores_in_sample_name (self ):
735
735
"""
736
- Extracts the correct project code having multiple options .
736
+ Extracts the correct project code and sample name in presence of underscores .
737
737
"""
738
738
739
739
stub_sample_sheet = """
@@ -764,9 +764,19 @@ def test_underscores_in_sample_name(self):
764
764
ss = sample_sheet_parser (StringIO (stub_sample_sheet ))
765
765
split_rows = ss ['DataSplit' ]
766
766
assert len (split_rows ) == 2
767
+
768
+ assert split_rows [0 ]['filename' ] == 'Sample1-Proj1_S1'
769
+ assert split_rows [1 ]['filename' ] == 'Sample2-Proj2_S2'
770
+
767
771
assert split_rows [0 ]['project' ] == 'Proj1'
768
772
assert split_rows [1 ]['project' ] == 'Proj2'
769
773
774
+ assert split_rows [0 ]['sample' ] == 'Sample1'
775
+ assert split_rows [1 ]['sample' ] == 'Sample2'
776
+
777
+ assert split_rows [0 ]['sample_number' ] == 'S1'
778
+ assert split_rows [1 ]['sample_number' ] == 'S2'
779
+
770
780
771
781
def test_read_sample_sheet_overrides (tmpdir ):
772
782
sample_sheet_path = Path (str (tmpdir )) / 'SampleSheet.csv'
You can’t perform that action at this time.
0 commit comments