summaryrefslogtreecommitdiff
path: root/tests/artifactcache
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-12-10 15:12:29 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-12-10 15:12:29 +0900
commit7b1233ff1410bcf60cfa00ff1f12dabeab5b0634 (patch)
tree5bc15d57c61ca95c2c0da3887f5aa3edaeb0d023 /tests/artifactcache
parente030bd8ceb6960d0d8e9e8abde447dc444218f67 (diff)
downloadbuildstream-7b1233ff1410bcf60cfa00ff1f12dabeab5b0634.tar.gz
pep8 fixes in artifactcache test case
Diffstat (limited to 'tests/artifactcache')
-rw-r--r--tests/artifactcache/basics.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/artifactcache/basics.py b/tests/artifactcache/basics.py
index e63318ba9..4d20c9a92 100644
--- a/tests/artifactcache/basics.py
+++ b/tests/artifactcache/basics.py
@@ -5,6 +5,7 @@ import tempfile
from buildstream import Context
from buildstream._artifactcache import ArtifactCache
+
@pytest.fixture()
def context(tmpdir):
context = Context('x86_64')
@@ -15,17 +16,21 @@ def context(tmpdir):
return context
+
@pytest.fixture()
def artifactcache(context):
return ArtifactCache(context)
+
def test_empty_contains(context, artifactcache):
assert(not artifactcache.contains('foo', 'bar', 'a1b2c3'))
+
@pytest.mark.xfail()
def test_empty_extract(context, artifactcache):
artifactcache.extract('foo', 'bar', 'a1b2c3')
+
def test_commit_extract(context, artifactcache):
os.makedirs(context.deploydir, exist_ok=True)
with tempfile.TemporaryDirectory(dir=context.deploydir) as deploydir: