diff options
author | Benjamin Schubert <contact@benschubert.me> | 2020-10-11 12:46:25 +0000 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2020-10-15 20:17:58 +0000 |
commit | c958d4c9bb15e689b13408599245e360f215df21 (patch) | |
tree | 541ed5db6b5a4e3c68247969a34868c5f8bcd37f /tests/sources/zip.py | |
parent | 567a9be1a29cd528a8eabc6471566a09a3bbd853 (diff) | |
download | buildstream-bschubert/standardize-source-tests.tar.gz |
tests: Stop using the implicit source tests and explicitely run thembschubert/standardize-source-tests
This makes use of the new helper classes to generate the source tests,
making them explicit to run
Diffstat (limited to 'tests/sources/zip.py')
-rw-r--r-- | tests/sources/zip.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/sources/zip.py b/tests/sources/zip.py index 201271fe0..9bcc009f7 100644 --- a/tests/sources/zip.py +++ b/tests/sources/zip.py @@ -7,9 +7,10 @@ import zipfile import pytest from buildstream.exceptions import ErrorDomain -from buildstream.testing import generate_project +from buildstream.testing import generate_project, SourceTests from buildstream.testing import cli # pylint: disable=unused-import from tests.testutils.file_server import create_file_server +from tests.testutils.repo.zip import Zip from . import list_dir_contents DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "zip",) @@ -27,6 +28,11 @@ def _assemble_zip(workingdir, dstfile): os.chdir(old_dir) +class TestZipSource(SourceTests): + KIND = "zip" + REPO = Zip + + # Test that without ref, consistency is set appropriately. @pytest.mark.datafiles(os.path.join(DATA_DIR, "no-ref")) def test_no_ref(cli, tmpdir, datafiles): |