File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -30,21 +30,6 @@ class BedType(Enum):
30
30
BED12 = 12
31
31
32
32
33
- class BedColumns (Enum ):
34
- contig = 0
35
- start = 1
36
- end = 2
37
- name = 3
38
- score = 4
39
- strand = 5
40
- thickStart = 6
41
- thickEnd = 7
42
- itemRgb = 8
43
- blockCount = 9
44
- blockSizes = 10
45
- blockStarts = 11
46
-
47
-
48
33
@dataclasses .dataclass
49
34
class ZarrArraySpec :
50
35
name : str
Original file line number Diff line number Diff line change @@ -132,8 +132,9 @@ class TestBedData:
132
132
@pytest .mark .parametrize ("bed_data" , ALL_BED_FORMATS , indirect = True )
133
133
def test_guess_bed_type_from_path (self , bed_path , request ):
134
134
bedspec = request .node .callspec .params ["bed_data" ]
135
+ match_str = rf"(got { bedspec } |prohibited|unsupported)"
135
136
if bedspec not in SUPPORTED_BED_FORMATS :
136
- with pytest .raises (ValueError ):
137
+ with pytest .raises (ValueError , match = match_str ):
137
138
bed2zarr .guess_bed_file_type (bed_path )
138
139
else :
139
140
bed_type = bed2zarr .guess_bed_file_type (bed_path )
You can’t perform that action at this time.
0 commit comments