mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
a29d465ee8
Summary: With Facebook having been renamed Meta Platforms, we need to change the license headers. Reviewed By: fanzeyi Differential Revision: D33407812 fbshipit-source-id: b11bfbbf13a48873f0cea75f212cc7b07a68fb2e
25 lines
769 B
Python
25 lines
769 B
Python
#!/usr/bin/env python3
|
|
# Copyright (c) Meta Platforms, Inc. and 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.clone(self.repo.path, str(clone_path))
|
|
self.assertEqual(
|
|
self.eden.client_dir_for_mount(clone_path),
|
|
pathlib.Path(self.eden_dir, "clients", "test_checkout"),
|
|
)
|