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 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw2\\test_git_error_is_exposed_for_0\\.cache\\pypoetry\\src\\test-fixture-vcs-repo'...\nfatal: Cannot prompt because user interactivity has been disabled.\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 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw2\\test_git_error_is_exposed_for_0\\.cache\\pypoetry\\src\\test-fixture-vcs-repo'...\nfatal: Cannot prompt because user interactivity has been disabled.\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 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw2\\test_git_error_is_exposed_for_0\\.cache\\pypoetry\\src\\test-fixture-vcs-repo'...\nfatal: Cannot prompt because user interactivity has been disabled.\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 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\popen-gw2\\test_git_error_is_exposed_for_0\\.cache\\pypoetry\\src\\test-fixture-vcs-repo'...\nfatal: Cannot prompt because user interactivity has been disabled.\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 'C:\\Use...nteractivity has been disabled.\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