Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
- Loading branch information
1 parent
73793c7
commit 0bb7269
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pytest | ||
|
||
from virtualenv.run import session_via_cli | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"args, download", [([], False), (["--no-download"], False), (["--never-download"], False), (["--download"], True)] | ||
) | ||
def test_download_cli_flag(args, download, tmp_path): | ||
session = session_via_cli(args + [str(tmp_path)]) | ||
assert session.seeder.download is download |