From 576e3da33e8b977a33e997d4ce80dc3c17d5da15 Mon Sep 17 00:00:00 2001 From: Benjamin Schubert Date: Sat, 9 May 2020 12:24:37 +0100 Subject: fixup! cachekey.py: Move source tests for cache keys in sourcetests --- tests/testutils/repo/git.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/testutils/repo/git.py') diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py index 1deca3ff7..f8af28e33 100644 --- a/tests/testutils/repo/git.py +++ b/tests/testutils/repo/git.py @@ -107,3 +107,20 @@ class Git(Repo): def rev_parse(self, rev): return self._run_git("rev-parse", rev, stdout=subprocess.PIPE, universal_newlines=True,).stdout.strip() + + def get_element_and_keys_for_cache_key_stability_test(self): + return [ + ( + { + "kind": "import", + "sources": [ + { + "kind": "git", + "url": "https://example.com/git/repo.git", + "ref": "6ac68af3e80b7b17c23a3c65233043550a7fa685" + } + ] + }, + "4e21bc1089066998d44933fdf1e48b2a5a73ceaba7a3944538f3f142e34b8b8e" + ) + ] -- cgit v1.2.1