Add test case for this.

This commit is contained in:
Matt Davis
2022-03-11 01:49:16 -05:00
parent 034aa81297
commit e7732e2a1b
+21
View File
@@ -210,6 +210,27 @@ pyver = "which python"
assert 'which python' in c.stdout
@pytest.mark.cli
def test_scripts_resolve_dot_env_vars(PipenvInstance):
with PipenvInstance() as p:
with open(".env", "w") as f:
contents = """
HELLO=WORLD
""".strip()
f.write(contents)
with open(p.pipfile_path, "w") as f:
contents = """
[scripts]
hello = "echo $HELLO"
""".strip()
f.write(contents)
c = p.pipenv('run hello')
print(c)
print(c.stdout)
assert 'WORLD' in c.stdout
@pytest.mark.cli
def test_help(PipenvInstance):
with PipenvInstance() as p: