mirror of
https://github.com/facebook/sapling.git
synced 2024-12-26 14:34:34 +03:00
fbdb46f5cb
Reviewed By: chadaustin Differential Revision: D17872966 fbshipit-source-id: cd60a364a2146f0dadbeca693b1d4a5d7c97ff63
25 lines
778 B
Python
25 lines
778 B
Python
#!/usr/bin/env python3
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License version 2.
|
|
|
|
import pathlib
|
|
|
|
from .lib import testcase
|
|
|
|
|
|
@testcase.eden_repo_test
|
|
class EdenClientTest(testcase.EdenRepoTest):
|
|
def populate_repo(self) -> None:
|
|
self.repo.write_file("hello", "hola\n")
|
|
self.repo.commit("Initial commit.")
|
|
|
|
def test_client_dir_for_mount(self) -> None:
|
|
clone_path = pathlib.Path(self.tmp_dir, "test_checkout")
|
|
self.eden.run_cmd("clone", self.repo_name, str(clone_path))
|
|
self.assertEqual(
|
|
self.eden.client_dir_for_mount(clone_path),
|
|
pathlib.Path(self.eden_dir, "clients", "test_checkout"),
|
|
)
|