Skip to content

Commit

Permalink
updated test for python-poetry#9819 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprabhat99 authored Nov 14, 2024
1 parent 3c76d5c commit 627cab0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/integration/test_utils_vcs_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,13 +437,14 @@ def test_relative_submodules_with_ssh(
]


def test_git_error_is_exposed_for_non_existent_branch(source_url: str) -> None:
def test_git_error_is_exposed_for_non_existent_repo() -> None:
source_url = "https://github.com/python-poetry/test-fixture-vcs-repo.git"
branch = uuid.uuid4().hex

with pytest.raises(PoetryConsoleError) as e:
Git.clone(url=source_url, branch=branch)

assert (
f"Failed to clone {source_url} at '{branch}', verify ref exists on remote."
f"remote: Repository not found."
in str(e.value)
)

0 comments on commit 627cab0

Please sign in to comment.