mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Adjust test stdout expectations.
This commit is contained in:
@@ -189,7 +189,7 @@ def test_run_in_virtualenv_with_global_context(PipenvInstance, virtualenv):
|
||||
|
||||
c = p.pipenv("run python -c 'import click;print(click.__file__)'")
|
||||
assert c.returncode == 0, (c.stdout, c.stderr)
|
||||
assert is_in_path(c.stdout.strip(), str(virtualenv)), (c.stdout.strip(), str(virtualenv))
|
||||
assert is_in_path(c.stdout.splitlines()[1], str(virtualenv)), (c.stdout.splitlines()[1], str(virtualenv))
|
||||
|
||||
c = p.pipenv("clean --dry-run")
|
||||
assert c.returncode == 0, (c.stdout, c.stderr)
|
||||
@@ -210,7 +210,7 @@ def test_run_in_virtualenv(PipenvInstance):
|
||||
assert c.returncode == 0
|
||||
c = p.pipenv('run python -c "import click;print(click.__file__)"')
|
||||
assert c.returncode == 0
|
||||
assert normalize_path(c.stdout.strip()).startswith(
|
||||
assert normalize_path(c.stdout.splitlines()[1]).startswith(
|
||||
normalize_path(str(project.virtualenv_location))
|
||||
)
|
||||
c = p.pipenv("clean --dry-run")
|
||||
|
||||
@@ -80,5 +80,5 @@ def test_run_with_usr_env_shebang(PipenvInstance):
|
||||
c = p.pipenv("run ./test_script")
|
||||
assert c.returncode == 0
|
||||
project = Project()
|
||||
lines = [line.strip() for line in c.stdout.splitlines()]
|
||||
lines = [line.strip() for line in c.stdout.splitlines()[1:]]
|
||||
assert all(line == project.virtualenv_location for line in lines)
|
||||
|
||||
Reference in New Issue
Block a user