Esempio n. 1
0
def test_creator_input_passed_is_abs(tmp_path, monkeypatch):
    monkeypatch.chdir(tmp_path)
    result = Creator.validate_dest("venv")
    assert str(result) == str(tmp_path / "venv")
Esempio n. 2
0
def test_creator_replaces_altsep_in_dest(tmp_path):
    dest = str(tmp_path / "venv{}foobar")
    result = Creator.validate_dest(dest.format(os.altsep))
    assert str(result) == dest.format(os.sep)
Esempio n. 3
0
 def __init__(self, options, interpreter):
     Creator.__init__(self, options, interpreter)
     Describe.__init__(self, self.dest, interpreter)