diff options
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: |