diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-12-10 15:12:29 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-12-10 15:12:29 +0900 |
commit | 7b1233ff1410bcf60cfa00ff1f12dabeab5b0634 (patch) | |
tree | 5bc15d57c61ca95c2c0da3887f5aa3edaeb0d023 /tests/artifactcache | |
parent | e030bd8ceb6960d0d8e9e8abde447dc444218f67 (diff) | |
download | buildstream-7b1233ff1410bcf60cfa00ff1f12dabeab5b0634.tar.gz |
pep8 fixes in artifactcache test case
Diffstat (limited to 'tests/artifactcache')
-rw-r--r-- | tests/artifactcache/basics.py | 5 |
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: |