diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-04 16:49:12 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-04 16:49:12 -0400 |
commit | 193bc3c195e9d0843d38f4a7e4eecac5b8daa1a2 (patch) | |
tree | 200db2d52b66343249b82c2f1092b1937838eedc /tests/frontend/fetch.py | |
parent | 60297032d9a95d88b5812dbd02b1e44f95db913e (diff) | |
download | buildstream-193bc3c195e9d0843d38f4a7e4eecac5b8daa1a2.tar.gz |
Restructuring tests using the Repo and Cli
Make all the test batteries which run on all the
source backends we have repo scaffoldings for discover
the list of Repo implementations automatically.
Diffstat (limited to 'tests/frontend/fetch.py')
-rw-r--r-- | tests/frontend/fetch.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/frontend/fetch.py b/tests/frontend/fetch.py index 23e6b3a35..e8c22c6f7 100644 --- a/tests/frontend/fetch.py +++ b/tests/frontend/fetch.py @@ -1,11 +1,9 @@ import os import pytest -from tests.testutils.runcli import cli -from tests.testutils.repo import create_repo +from tests.testutils import cli, create_repo, ALL_REPO_KINDS from buildstream import _yaml - # Project directory DATA_DIR = os.path.join( os.path.dirname(os.path.realpath(__file__)), @@ -14,7 +12,7 @@ DATA_DIR = os.path.join( @pytest.mark.datafiles(DATA_DIR) -@pytest.mark.parametrize("kind", [('git'), ('bzr'), ('ostree'), ('tar')]) +@pytest.mark.parametrize("kind", [(kind) for kind in ALL_REPO_KINDS]) def test_fetch(cli, tmpdir, datafiles, kind): project = os.path.join(datafiles.dirname, datafiles.basename) bin_files_path = os.path.join(project, 'files', 'bin-files') |