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 7c867d7 commit b407f3cCopy full SHA for b407f3c
tests/test_clone_to_cache.py
@@ -10,7 +10,7 @@
10
11
import git
12
13
-from robot_descriptions._cache import clone_to_cache
+from robot_descriptions._cache import clone_to_cache, clear_cache
14
from robot_descriptions._repositories import REPOSITORIES
15
16
@@ -64,3 +64,11 @@ def test_clone_valid_commit(self):
64
commit = "0e488ee4708155a71b2a92d05305a9186b543593"
65
repository_path = clone_to_cache(description_name, commit)
66
self.assertTrue(repository_path.endswith(f"-{commit}"))
67
+
68
+ def test_clone_twice_with_commit(self):
69
+ clear_cache()
70
+ clone_to_cache(
71
+ "upkie_description",
72
+ commit="a2c820054a7572603875def478f21376165c125e",
73
+ )
74
+ clone_to_cache("draco3_description")
0 commit comments