diff options
author | James Ennis <james.ennis@codethink.com> | 2019-01-18 16:19:54 +0000 |
---|---|---|
committer | James Ennis <james.ennis@codethink.com> | 2019-02-13 09:35:45 +0000 |
commit | 9b140fa00ce98d2902c9cfef2eb6fd550b6cdeef (patch) | |
tree | bad5493667ea9ab700ea510867238ade6e0e4b6b /tests/artifactcache/push.py | |
parent | 6de65306882ebbbcb0cb791cc123645b0a756069 (diff) | |
download | buildstream-9b140fa00ce98d2902c9cfef2eb6fd550b6cdeef.tar.gz |
element.py: Lift ArtifactCache.get_artifact_fullname() to here
This commit removes the method ArtifactCache.get_artifact_fullname()
and replaces it with Element.get_artifact_name()
Given a key, we are now able to construct the full name of any of an
element's artifacts.
Diffstat (limited to 'tests/artifactcache/push.py')
-rw-r--r-- | tests/artifactcache/push.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py index ed2a140e7..3b2e1be09 100644 --- a/tests/artifactcache/push.py +++ b/tests/artifactcache/push.py @@ -190,7 +190,7 @@ def test_push_directory(cli, tmpdir, datafiles): assert artifactcache.has_push_remotes(element=element) # Recreate the CasBasedDirectory object from the cached artifact - artifact_ref = artifactcache.get_artifact_fullname(element, element_key) + artifact_ref = element.get_artifact_name(element_key) artifact_digest = cas.resolve_ref(artifact_ref) queue = multiprocessing.Queue() |