summaryrefslogtreecommitdiff
path: root/tests/frontend/artifact.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/frontend/artifact.py')
-rw-r--r--tests/frontend/artifact.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/frontend/artifact.py b/tests/frontend/artifact.py
index 716c4b8a1..eb187a168 100644
--- a/tests/frontend/artifact.py
+++ b/tests/frontend/artifact.py
@@ -92,7 +92,7 @@ def test_artifact_delete_artifact(cli, tmpdir, datafiles):
element = 'target.bst'
# Configure a local cache
- local_cache = os.path.join(str(tmpdir), 'artifacts')
+ local_cache = os.path.join(str(tmpdir), 'cache')
cli.configure({'cachedir': local_cache})
# First build an element so that we can find its artifact
@@ -104,7 +104,7 @@ def test_artifact_delete_artifact(cli, tmpdir, datafiles):
artifact = os.path.join('test', os.path.splitext(element)[0], cache_key)
# Explicitly check that the ARTIFACT exists in the cache
- assert os.path.exists(os.path.join(local_cache, 'cas', 'refs', 'heads', artifact))
+ assert os.path.exists(os.path.join(local_cache, 'artifacts', 'refs', artifact))
# Delete the artifact
result = cli.run(project=project, args=['artifact', 'delete', artifact])
@@ -122,7 +122,7 @@ def test_artifact_delete_element_and_artifact(cli, tmpdir, datafiles):
dep = 'compose-all.bst'
# Configure a local cache
- local_cache = os.path.join(str(tmpdir), 'artifacts')
+ local_cache = os.path.join(str(tmpdir), 'cache')
cli.configure({'cachedir': local_cache})
# First build an element so that we can find its artifact
@@ -138,14 +138,14 @@ def test_artifact_delete_element_and_artifact(cli, tmpdir, datafiles):
artifact = os.path.join('test', os.path.splitext(element)[0], cache_key)
# Explicitly check that the ARTIFACT exists in the cache
- assert os.path.exists(os.path.join(local_cache, 'cas', 'refs', 'heads', artifact))
+ assert os.path.exists(os.path.join(local_cache, 'artifacts', 'refs', artifact))
# Delete the artifact
result = cli.run(project=project, args=['artifact', 'delete', artifact, dep])
result.assert_success()
# Check that the ARTIFACT is no longer in the cache
- assert not os.path.exists(os.path.join(local_cache, 'cas', 'refs', 'heads', artifact))
+ assert not os.path.exists(os.path.join(local_cache, 'artifacts', artifact))
# Check that the dependency ELEMENT is no longer cached
assert cli.get_element_state(project, dep) != 'cached'