diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2019-09-05 12:47:15 +0100 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2019-09-06 15:55:10 +0100 |
commit | f40212206bb3ee3f772f9a816476d9cb10c46fca (patch) | |
tree | 3b2cab77021916fb37fdb7eb60001bc8f8bd2608 /tests/artifactcache | |
parent | 1f9c48b431c06465bf3b07bf83ab68847874fbed (diff) | |
download | buildstream-f40212206bb3ee3f772f9a816476d9cb10c46fca.tar.gz |
Change unfitting function name
Diffstat (limited to 'tests/artifactcache')
-rw-r--r-- | tests/artifactcache/pull.py | 4 | ||||
-rw-r--r-- | tests/artifactcache/push.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/artifactcache/pull.py b/tests/artifactcache/pull.py index 71db3e338..2e33af3ac 100644 --- a/tests/artifactcache/pull.py +++ b/tests/artifactcache/pull.py @@ -66,7 +66,7 @@ def test_pull(cli, tmpdir, datafiles): # Assert that we are now cached locally assert cli.get_element_state(project_dir, 'target.bst') == 'cached' # Assert that we shared/pushed the cached artifact - assert share.has_artifact(cli.get_artifact_name(project_dir, 'test', 'target.bst')) + assert share.get_artifact(cli.get_artifact_name(project_dir, 'test', 'target.bst')) # Delete the artifact locally cli.remove_artifact_from_cache(project_dir, 'target.bst') @@ -138,7 +138,7 @@ def test_pull_tree(cli, tmpdir, datafiles): # Assert that we are now cached locally assert cli.get_element_state(project_dir, 'target.bst') == 'cached' # Assert that we shared/pushed the cached artifact - assert share.has_artifact(cli.get_artifact_name(project_dir, 'test', 'target.bst')) + assert share.get_artifact(cli.get_artifact_name(project_dir, 'test', 'target.bst')) with dummy_context(config=user_config_file) as context: # Load the project and CAS cache diff --git a/tests/artifactcache/push.py b/tests/artifactcache/push.py index 364ac39f0..8b00d0fb7 100644 --- a/tests/artifactcache/push.py +++ b/tests/artifactcache/push.py @@ -84,7 +84,7 @@ def test_push(cli, tmpdir, datafiles): # Write down the user configuration file _yaml.roundtrip_dump(user_config, file=user_config_file) element_key = _push(cli, rootcache_dir, project_dir, user_config_file, 'target.bst') - assert share.has_artifact(cli.get_artifact_name(project_dir, 'test', 'target.bst', cache_key=element_key)) + assert share.get_artifact(cli.get_artifact_name(project_dir, 'test', 'target.bst', cache_key=element_key)) @pytest.mark.in_subprocess |