Expose git errors instead of printing a generic error message #801
Annotations
2 errors
Run poetry run pytest --integration -v:
tests/integration/test_utils_vcs_git.py#L447
test_git_error_is_exposed_for_non_existent_repo
assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n"
+ where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n"))
+ where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value
|
Run poetry run pytest --integration -v
Process completed with exit code 1.
|
Loading