mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
clean up edge case now that print success changed away from stderr.
This commit is contained in:
+1
-1
@@ -118,7 +118,7 @@ def load_dot_env(project, as_dict=False):
|
||||
else:
|
||||
click.echo(
|
||||
crayons.normal(fix_utf8("Loading .env environment variables..."), bold=True),
|
||||
err=True,
|
||||
err=False,
|
||||
)
|
||||
dotenv.load_dotenv(dotenv_file, override=True)
|
||||
project.s.initialize()
|
||||
|
||||
@@ -36,12 +36,12 @@ multicommand = "bash -c \"cd docs && make html\""
|
||||
assert c.returncode == 0
|
||||
c = p.pipenv('run printfoo')
|
||||
assert c.returncode == 0
|
||||
assert c.stdout.splitlines()[0] == 'foo'
|
||||
assert c.stdout.splitlines()[1] == 'foo'
|
||||
assert not c.stderr.strip()
|
||||
|
||||
c = p.pipenv('run notfoundscript')
|
||||
assert c.returncode != 0
|
||||
assert c.stdout == ''
|
||||
assert c.stdout == 'Loading .env environment variables...\n'
|
||||
if os.name != 'nt': # TODO: Implement this message for Windows.
|
||||
assert 'not found' in c.stderr
|
||||
|
||||
@@ -60,7 +60,7 @@ multicommand = "bash -c \"cd docs && make html\""
|
||||
c = p.pipenv("run scriptwithenv")
|
||||
assert c.returncode == 0
|
||||
if os.name != "nt": # This doesn't work on CI windows.
|
||||
assert c.stdout.strip() == "WORLD"
|
||||
assert c.stdout.splitlines()[1] == "WORLD"
|
||||
|
||||
|
||||
@pytest.mark.run
|
||||
|
||||
Reference in New Issue
Block a user