Skip to content

Commit

Permalink
comment out git code driver clone test. not necessary for datmo funct…
Browse files Browse the repository at this point in the history
…ionality. remote access not handled by datmo
  • Loading branch information
asampat3090 committed May 11, 2018
1 parent 8ca6c13 commit c449157
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions datmo/core/controller/code/driver/tests/test_git.py
Expand Up @@ -136,24 +136,24 @@ def test_exists_datmo_files_in_worktree(self):
result = self.git_code_manager.exists_datmo_files_in_worktree()
assert result == True

def test_clone(self):
result = self.git_code_manager.clone(
"https://github.com/datmo/hello-world.git", mode="https")
assert result and os.path.exists(
os.path.join(self.temp_dir, "hello-world", ".git"))
result = self.git_code_manager.clone(
"https://github.com/datmo/hello-world.git",
repo_name="hello-world-2",
mode="http")
assert result and os.path.exists(
os.path.join(self.temp_dir, "hello-world-2", ".git"))
if self.git_code_manager.git_host_manager.ssh_enabled:
result = self.git_code_manager.clone(
"https://github.com/datmo/hello-world.git",
repo_name="hello-world-3",
mode="ssh")
assert result and os.path.exists(
os.path.join(self.temp_dir, "hello-world-3", ".git"))
# def test_clone(self):
# result = self.git_code_manager.clone(
# "https://github.com/datmo/hello-world.git", mode="https")
# assert result and os.path.exists(
# os.path.join(self.temp_dir, "hello-world", ".git"))
# result = self.git_code_manager.clone(
# "https://github.com/datmo/hello-world.git",
# repo_name="hello-world-2",
# mode="http")
# assert result and os.path.exists(
# os.path.join(self.temp_dir, "hello-world-2", ".git"))
# if self.git_code_manager.git_host_manager.ssh_enabled:
# result = self.git_code_manager.clone(
# "https://github.com/datmo/hello-world.git",
# repo_name="hello-world-3",
# mode="ssh")
# assert result and os.path.exists(
# os.path.join(self.temp_dir, "hello-world-3", ".git"))

def test_parse_git_url(self):
parsed = self.git_code_manager._parse_git_url(
Expand Down

0 comments on commit c449157

Please sign in to comment.