Skip to content

Commit 68dacfa

Browse files
author
Aaron Sun
committed
Updated unit tests
1 parent 9cbb82f commit 68dacfa

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/extensions/git/test_git_extension.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,8 @@ def test_deprecation_notice_shown_on_fresh_install(self, tmp_path: Path):
857857
mock_manifest = MagicMock()
858858
mock_manifest.install_notice = (
859859
"The git extension is currently enabled by default, but starting with\n"
860-
"v1.0.0 it will require explicit opt-in.\n\n"
861-
"To opt in after v1.0.0:\n"
860+
"specify-cli v1.0.0 it will require explicit opt-in.\n\n"
861+
"To opt in after specify-cli v1.0.0:\n"
862862
" • specify init --extension git\n"
863863
" • specify extension add git (post-init)"
864864
)
@@ -878,7 +878,7 @@ def test_deprecation_notice_shown_on_fresh_install(self, tmp_path: Path):
878878
)
879879

880880
assert result.exit_code == 0, result.output
881-
assert "Deprecation notice: git Extension" in result.output
881+
assert "Deprecation notice: git extension" in result.output
882882
assert "v1.0.0" in result.output
883883
assert "specify extension add git" in result.output
884884

@@ -905,7 +905,7 @@ def test_deprecation_notice_not_shown_when_already_installed(self, tmp_path: Pat
905905
)
906906

907907
assert result.exit_code == 0, result.output
908-
assert "Deprecation notice: git Extension" not in result.output
908+
assert "Deprecation notice: git extension" not in result.output
909909

910910
def test_deprecation_notice_not_shown_with_no_git_flag(self, tmp_path: Path):
911911
"""specify init does NOT show the deprecation notice when --no-git is passed."""
@@ -922,7 +922,7 @@ def test_deprecation_notice_not_shown_with_no_git_flag(self, tmp_path: Path):
922922
)
923923

924924
assert result.exit_code == 0, result.output
925-
assert "Deprecation notice: git Extension" not in result.output
925+
assert "Deprecation notice: git extension" not in result.output
926926

927927
def test_deprecation_notice_not_shown_when_no_install_notice(self, tmp_path: Path):
928928
"""specify init does NOT show the deprecation notice if extension has no install_notice."""
@@ -951,4 +951,4 @@ def test_deprecation_notice_not_shown_when_no_install_notice(self, tmp_path: Pat
951951
)
952952

953953
assert result.exit_code == 0, result.output
954-
assert "Deprecation notice: git Extension" not in result.output
954+
assert "Deprecation notice: git extension" not in result.output

0 commit comments

Comments
 (0)