Skip to content

Commit e19e5c2

Browse files
stephane-caronStéphane Caron
authored andcommitted
Check that pinned clone has commit in dirname
1 parent 55841d2 commit e19e5c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_clone_to_cache.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,9 @@ def test_clone_invalid_commit(self):
7070
"""Invalid commit raises an exception."""
7171
with self.assertRaises(git.exc.GitCommandError):
7272
clone_to_cache("simple_humanoid_description", commit="foobar")
73+
74+
def test_clone_valid_commit(self):
75+
description_name = "simple_humanoid_description"
76+
commit = "0e488ee4708155a71b2a92d05305a9186b543593"
77+
repository_path = clone_to_cache(description_name, commit)
78+
self.assertTrue(repository_path.endswith(f"-{commit}"))

0 commit comments

Comments
 (0)