def test_get_clone_dir_new_dir_and_remote(tmp_path): new_dir = os.path.join("foo/bar", "remote") res = Dolt._get_clone_dir(new_dir="foo/bar", remote_url="some/remote") assert new_dir == res
def test_get_clone_dir_remote_only(tmp_path): new_dir = os.path.join(os.getcwd(), "remote") res = Dolt._get_clone_dir(remote_url="some/remote") assert new_dir == res
def test_get_clone_dir_new_dir_only(tmp_path): res = Dolt._get_clone_dir("new_dir") assert "new_dir" == res
def test_get_clone_dir_no_remote(tmp_path): new_dir = os.path.join(tmp_path, "new_dir") res = Dolt._get_clone_dir(new_dir) assert new_dir == res