summaryrefslogtreecommitdiff
path: root/tests/frontend
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2019-09-05 12:47:15 +0100
committerTristan Maat <tristan.maat@codethink.co.uk>2019-09-06 15:55:10 +0100
commitf40212206bb3ee3f772f9a816476d9cb10c46fca (patch)
tree3b2cab77021916fb37fdb7eb60001bc8f8bd2608 /tests/frontend
parent1f9c48b431c06465bf3b07bf83ab68847874fbed (diff)
downloadbuildstream-f40212206bb3ee3f772f9a816476d9cb10c46fca.tar.gz
Change unfitting function name
Diffstat (limited to 'tests/frontend')
-rw-r--r--tests/frontend/artifact_delete.py2
-rw-r--r--tests/frontend/artifact_show.py2
-rw-r--r--tests/frontend/push.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/frontend/artifact_delete.py b/tests/frontend/artifact_delete.py
index 80870c81a..a9f5ec6da 100644
--- a/tests/frontend/artifact_delete.py
+++ b/tests/frontend/artifact_delete.py
@@ -159,7 +159,7 @@ def test_artifact_delete_pulled_artifact_without_buildtree(cli, tmpdir, datafile
result.assert_success()
# Make sure it's in the share
- assert remote.has_artifact(cli.get_artifact_name(project, 'test', element))
+ assert remote.get_artifact(cli.get_artifact_name(project, 'test', element))
# Delete and then pull the artifact (without its buildtree)
result = cli.run(project=project, args=['artifact', 'delete', element])
diff --git a/tests/frontend/artifact_show.py b/tests/frontend/artifact_show.py
index 913dde9c8..76ea93d63 100644
--- a/tests/frontend/artifact_show.py
+++ b/tests/frontend/artifact_show.py
@@ -124,7 +124,7 @@ def test_artifact_show_element_available_remotely(cli, tmpdir, datafiles):
result.assert_success()
# Make sure it's in the share
- assert remote.has_artifact(cli.get_artifact_name(project, 'test', element))
+ assert remote.get_artifact(cli.get_artifact_name(project, 'test', element))
# Delete the artifact from the local cache
result = cli.run(project=project, args=['artifact', 'delete', element])
diff --git a/tests/frontend/push.py b/tests/frontend/push.py
index 57e670fe6..31f96cbdf 100644
--- a/tests/frontend/push.py
+++ b/tests/frontend/push.py
@@ -569,7 +569,7 @@ def test_push_cross_junction(cli, tmpdir, datafiles):
cli.run(project=project, args=['artifact', 'push', 'junction.bst:import-etc.bst'])
cache_key = cli.get_element_key(project, 'junction.bst:import-etc.bst')
- assert share.has_artifact(cli.get_artifact_name(project, 'subtest', 'import-etc.bst', cache_key=cache_key))
+ assert share.get_artifact(cli.get_artifact_name(project, 'subtest', 'import-etc.bst', cache_key=cache_key))
@pytest.mark.datafiles(DATA_DIR)