mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Add test case for this.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user