File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ def test_changelog_updates(server_type):
3939 from packaging .version import Version
4040
4141 changelog = Changelog (server = server_type )
42- changelog .major_bump ("Major bump" ).minor_bump ("Minor bump" ).patch_bump ("Patch \n bump" )
42+ changelog .patch_bump ("Patch 1" ).minor_bump ("Minor bump 1" ).major_bump ("Major bump" ).minor_bump (
43+ "Minor bump"
44+ ).patch_bump ("Patch \n bump" )
4345 with pytest .raises (ValueError ):
4446 changelog .expect_version (Version ("0.0.0" ))
4547 changelog .expect_version (Version ("1.1.1" ))
@@ -51,18 +53,20 @@ def test_changelog_updates(server_type):
5153Version Changes
5254------- -------
53550.0.0 Initial version.
56+ 0.0.1 Patch 1
57+ 0.1.0 Minor bump 1
54581.0.0 Major bump
55591.1.0 Minor bump
56601.1.1 Patch
5761 bump
58621.1.2 Patch 2
5963"""
6064 )
61- assert len (changelog ) == 5
65+ assert len (changelog ) == 7
6266 assert changelog [0 ] == (Version ("0.0.0" ), "Initial version." )
6367 assert changelog [- 1 ] == (Version ("1.1.2" ), "Patch 2" )
6468 for i , v in enumerate (changelog ):
65- if i == 2 :
69+ if i == 4 :
6670 assert v == (Version ("1.1.0" ), "Minor bump" )
6771 with pytest .raises (IndexError ):
6872 _ = changelog [8 ]
You can’t perform that action at this time.
0 commit comments