@@ -655,6 +655,7 @@ def test_changelog_from_rev_latest_version_from_arg(
655
655
def test_changelog_from_rev_single_version_not_found (
656
656
mocker , config_path , changelog_path
657
657
):
658
+ """Provides an invalid revision ID to changelog command"""
658
659
with open (config_path , "a" ) as f :
659
660
f .write ('tag_format = "$version"\n ' )
660
661
@@ -679,12 +680,13 @@ def test_changelog_from_rev_single_version_not_found(
679
680
with pytest .raises (NoCommitsFoundError ) as excinfo :
680
681
cli .main ()
681
682
682
- assert "No commits found " in str (excinfo )
683
+ assert "Could not find a valid revision " in str (excinfo )
683
684
684
685
685
686
@pytest .mark .usefixtures ("tmp_commitizen_project" )
686
687
@pytest .mark .freeze_time ("2022-02-13" )
687
688
def test_changelog_from_rev_range_version_not_found (mocker , config_path ):
689
+ """Provides an invalid end revision ID to changelog command"""
688
690
with open (config_path , "a" ) as f :
689
691
f .write ('tag_format = "$version"\n ' )
690
692
@@ -706,7 +708,7 @@ def test_changelog_from_rev_range_version_not_found(mocker, config_path):
706
708
with pytest .raises (NoCommitsFoundError ) as excinfo :
707
709
cli .main ()
708
710
709
- assert "No commits found " in str (excinfo )
711
+ assert "Could not find a valid revision " in str (excinfo )
710
712
711
713
712
714
@pytest .mark .usefixtures ("tmp_commitizen_project" )
0 commit comments