virtualenv/tests/unit/seed/test_base_embed.py
2020-05-12 13:38:39 +01:00

11 lines
363 B
Python

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