clean up edge case now that print success changed away from stderr.

This commit is contained in:
Matt Davis
2022-03-11 02:09:18 -05:00
parent e7732e2a1b
commit 90a12ddb11
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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()
+3 -3
View File
@@ -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