We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf1284 commit f543001Copy full SHA for f543001
tests/test_cache.py
@@ -78,6 +78,15 @@ def test_clone_to_cache_not_found(self):
78
with self.assertRaises(ImportError):
79
clone_to_cache("foo")
80
81
+ def test_clone_to_cache_right_commit(self):
82
+ """
83
+ Check that clone_to_cache clones the repository at the right commit.
84
85
+ description_name = "simple_humanoid_description"
86
+ repo = git.Repo(clone_to_cache(description_name))
87
+ commit = str(list(repo.iter_commits(max_count=1))[0])
88
+ self.assertEqual(commit, REPOSITORIES[description_name].commit)
89
+
90
def test_cache_creation(self):
91
"""
92
Check that clone_to_cache creates directory if needed.
0 commit comments