@@ -244,6 +244,26 @@ def test_invalid_bump_map(self, bump_pattern):
244244 with pytest .raises (NoPatternMapError ):
245245 OldSchoolBumpRule (bump_pattern , {}, {})
246246
247+ def test_invalid_bump_map_major_version_zero (self , bump_pattern , bump_map ):
248+ with pytest .raises (NoPatternMapError ):
249+ OldSchoolBumpRule (bump_pattern , bump_map , {})
250+
251+ def test_all_invalid (self ):
252+ with pytest .raises (NoPatternMapError ):
253+ OldSchoolBumpRule ("" , {}, {})
254+
255+ def test_none_values (self ):
256+ with pytest .raises (NoPatternMapError ):
257+ OldSchoolBumpRule (None , {}, {})
258+
259+ def test_empty_pattern_with_valid_maps (self , bump_map , bump_map_major_version_zero ):
260+ with pytest .raises (NoPatternMapError ):
261+ OldSchoolBumpRule ("" , bump_map , bump_map_major_version_zero )
262+
263+ def test_empty_maps_with_valid_pattern (self , bump_pattern ):
264+ with pytest .raises (NoPatternMapError ):
265+ OldSchoolBumpRule (bump_pattern , {}, {})
266+
247267 def test_complex_pattern (self ):
248268 pattern = r"^.*?\[(.*?)\].*?\[(.*?)\].*$"
249269 bump_map = {
0 commit comments