-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2645 from pypa/bugfix/2527-pipenv-verbosity
PIPENV_VERBOSITY
- Loading branch information
Showing
4 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Added environment variable `PIPENV_VERBOSITY` to control output verbosity | ||
without needing to pass options. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import pytest | ||
import mock | ||
|
||
from pipenv.core import warn_in_virtualenv | ||
|
||
|
||
@mock.patch('pipenv.environments.PIPENV_VIRTUALENV', 'totallyrealenv') | ||
@mock.patch('pipenv.environments.PIPENV_VERBOSITY', -1) | ||
@pytest.mark.core | ||
def test_suppress_nested_venv_warning(capsys): | ||
# Capture the stderr of warn_in_virtualenv to test for the presence of the | ||
# courtesy notice. | ||
warn_in_virtualenv() | ||
output, err = capsys.readouterr() | ||
assert 'Courtesy Notice' not in err |