blob: e9d61f3df21eb80019533a0db72f9b52606c6e99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from __future__ import annotations
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
|