File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1537,6 +1537,25 @@ def test_get_smart_tag_range_returns_an_extra_for_a_single_tag(tags):
1537
1537
assert 2 == len (res )
1538
1538
1539
1539
1540
+ def test_get_smart_tag_range_returns_an_empty_list_for_nonexistent_end_tag (tags ):
1541
+ start = tags [0 ]
1542
+ res = changelog .get_smart_tag_range (tags , start .name , "nonexistent" )
1543
+ assert len (tags ) == len (res )
1544
+
1545
+
1546
+ def test_get_smart_tag_range_returns_an_empty_list_for_nonexistent_start_tag (tags ):
1547
+ end = tags [0 ]
1548
+ res = changelog .get_smart_tag_range (tags , "nonexistent" , end .name )
1549
+ assert 1 == len (res )
1550
+
1551
+
1552
+ def test_get_smart_tag_range_returns_an_empty_list_for_nonexistent_start_and_end_tags (
1553
+ tags ,
1554
+ ):
1555
+ res = changelog .get_smart_tag_range (tags , "nonexistent" , "nonexistent" )
1556
+ assert 0 == len (res )
1557
+
1558
+
1540
1559
@dataclass
1541
1560
class TagDef :
1542
1561
name : str
You can’t perform that action at this time.
0 commit comments