Skip to content

Commit 70af1c8

Browse files
committed
Update a failing test on MacOS due to version argument not supported for printenv
1 parent 09d7cee commit 70af1c8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_cli.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,13 @@ def test_run_with_command_flags(dotenv_path):
280280
"""
281281
Check that command flags passed after `dotenv run` are not interpreted.
282282
283-
Here, we want to run `printenv --version`, not `dotenv --version`.
283+
Here, we want to run `echo --version`, not `dotenv --version`.
284284
"""
285285

286-
result = invoke_sub(["--file", dotenv_path, "run", "printenv", "--version"])
286+
result = invoke_sub(["--file", dotenv_path, "run", "echo", "--version"])
287287

288288
assert result.returncode == 0
289-
assert result.stdout.strip().startswith("printenv ")
290-
289+
assert result.stdout.strip() == "--version"
291290

292291
def test_run_with_dotenv_and_command_flags(cli, dotenv_path):
293292
"""

0 commit comments

Comments
 (0)