Exemplo n.º 1
0
def parse_cli(args):
    options = Namespace()
    return session_via_cli(args, options)
Exemplo n.º 2
0
 def _session_via_cli(args, options=None):
     session = session_via_cli(args, options)
     assert session.creator.can_be_inline is False
     return session
Exemplo n.º 3
0
 def _session_via_cli(args, options=None, setup_logging=True):
     session = session_via_cli(args, options, setup_logging)
     assert session.creator.can_be_inline is False
     return session
Exemplo n.º 4
0
def parse_cli(args):
    return session_via_cli(args)
Exemplo n.º 5
0
def test_download_cli_flag(args, download, tmp_path):
    session = session_via_cli(args + [str(tmp_path)])
    assert session.seeder.download is download
Exemplo n.º 6
0
def test_value_ok(monkeypatch, empty_conf):
    monkeypatch.setenv(str("VIRTUALENV_VERBOSE"), str("5"))
    result = session_via_cli(["venv"])
    assert result.verbosity == 5
def test_reset_app_data_does_not_conflict_clear():
    options = VirtualEnvOptions()
    session_via_cli(["--clear", "venv"], options=options)
    assert options.clear is True
    assert options.reset_app_data is False