@@ -633,6 +633,7 @@ def test_changelog_from_rev_latest_version_from_arg(
633
633
def test_changelog_from_rev_single_version_not_found (
634
634
mocker , config_path , changelog_path
635
635
):
636
+ """Provides an invalid revision ID to changelog command"""
636
637
with open (config_path , "a" ) as f :
637
638
f .write ('tag_format = "$version"\n ' )
638
639
@@ -657,12 +658,13 @@ def test_changelog_from_rev_single_version_not_found(
657
658
with pytest .raises (NoCommitsFoundError ) as excinfo :
658
659
cli .main ()
659
660
660
- assert "No commits found " in str (excinfo )
661
+ assert "Could not find a valid revision " in str (excinfo )
661
662
662
663
663
664
@pytest .mark .usefixtures ("tmp_commitizen_project" )
664
665
@pytest .mark .freeze_time ("2022-02-13" )
665
666
def test_changelog_from_rev_range_version_not_found (mocker , config_path ):
667
+ """Provides an invalid end revision ID to changelog command"""
666
668
with open (config_path , "a" ) as f :
667
669
f .write ('tag_format = "$version"\n ' )
668
670
@@ -684,7 +686,7 @@ def test_changelog_from_rev_range_version_not_found(mocker, config_path):
684
686
with pytest .raises (NoCommitsFoundError ) as excinfo :
685
687
cli .main ()
686
688
687
- assert "No commits found " in str (excinfo )
689
+ assert "Could not find a valid revision " in str (excinfo )
688
690
689
691
690
692
@pytest .mark .usefixtures ("tmp_commitizen_project" )
0 commit comments