@@ -633,6 +633,7 @@ def test_changelog_from_rev_latest_version_from_arg(
633633def test_changelog_from_rev_single_version_not_found (
634634 mocker , config_path , changelog_path
635635):
636+ """Provides an invalid revision ID to changelog command"""
636637 with open (config_path , "a" ) as f :
637638 f .write ('tag_format = "$version"\n ' )
638639
@@ -657,12 +658,13 @@ def test_changelog_from_rev_single_version_not_found(
657658 with pytest .raises (NoCommitsFoundError ) as excinfo :
658659 cli .main ()
659660
660- assert "No commits found " in str (excinfo )
661+ assert "Could not find a valid revision " in str (excinfo )
661662
662663
663664@pytest .mark .usefixtures ("tmp_commitizen_project" )
664665@pytest .mark .freeze_time ("2022-02-13" )
665666def test_changelog_from_rev_range_version_not_found (mocker , config_path ):
667+ """Provides an invalid end revision ID to changelog command"""
666668 with open (config_path , "a" ) as f :
667669 f .write ('tag_format = "$version"\n ' )
668670
@@ -684,7 +686,7 @@ def test_changelog_from_rev_range_version_not_found(mocker, config_path):
684686 with pytest .raises (NoCommitsFoundError ) as excinfo :
685687 cli .main ()
686688
687- assert "No commits found " in str (excinfo )
689+ assert "Could not find a valid revision " in str (excinfo )
688690
689691
690692@pytest .mark .usefixtures ("tmp_commitizen_project" )
0 commit comments