diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-08-30 06:36:41 +0000 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2018-08-30 06:36:41 +0000 |
commit | e77ae07aea66d2dee5b61abc913cedad0f00e20d (patch) | |
tree | 49e0516fb731d83e84a64020c928f5ddfbfb0f44 | |
parent | c7b72c3066846f25d6fbf5589ef0da29435f60d6 (diff) | |
parent | d28e13533abe20424d789b0f76bcc1474c9fdbaf (diff) | |
download | buildstream-e77ae07aea66d2dee5b61abc913cedad0f00e20d.tar.gz |
Merge branch 'tristan/reduce-filter-tests' into 'master'
tests/plugins/filter.py: Don't run redundant tests
See merge request BuildStream/buildstream!753
-rw-r--r-- | tests/plugins/filter.py | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/tests/plugins/filter.py b/tests/plugins/filter.py index 4a5ff3402..559815a8b 100644 --- a/tests/plugins/filter.py +++ b/tests/plugins/filter.py @@ -174,9 +174,8 @@ def test_filter_workspace_reset(datafiles, cli, tmpdir): @pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic')) -@pytest.mark.parametrize("kind", [(kind) for kind in ALL_REPO_KINDS if kind not in ("patch", "local")]) -def test_filter_track(datafiles, cli, tmpdir, kind): - repo = create_repo(kind, str(tmpdir)) +def test_filter_track(datafiles, cli, tmpdir): + repo = create_repo('git', str(tmpdir)) ref = repo.create(os.path.join(str(datafiles), "files")) elements_dir = os.path.join(str(tmpdir), "elements") project = str(tmpdir) @@ -228,9 +227,8 @@ def test_filter_track(datafiles, cli, tmpdir, kind): @pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic')) -@pytest.mark.parametrize("kind", [(kind) for kind in ALL_REPO_KINDS if kind not in ("patch", "local")]) -def test_filter_track_excepted(datafiles, cli, tmpdir, kind): - repo = create_repo(kind, str(tmpdir)) +def test_filter_track_excepted(datafiles, cli, tmpdir): + repo = create_repo('git', str(tmpdir)) ref = repo.create(os.path.join(str(datafiles), "files")) elements_dir = os.path.join(str(tmpdir), "elements") project = str(tmpdir) @@ -282,9 +280,8 @@ def test_filter_track_excepted(datafiles, cli, tmpdir, kind): @pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic')) -@pytest.mark.parametrize("kind", [(kind) for kind in ALL_REPO_KINDS if kind not in ("patch", "local")]) -def test_filter_track_multi_to_one(datafiles, cli, tmpdir, kind): - repo = create_repo(kind, str(tmpdir)) +def test_filter_track_multi_to_one(datafiles, cli, tmpdir): + repo = create_repo('git', str(tmpdir)) ref = repo.create(os.path.join(str(datafiles), "files")) elements_dir = os.path.join(str(tmpdir), "elements") project = str(tmpdir) @@ -336,9 +333,8 @@ def test_filter_track_multi_to_one(datafiles, cli, tmpdir, kind): @pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic')) -@pytest.mark.parametrize("kind", [(kind) for kind in ALL_REPO_KINDS if kind not in ("patch", "local")]) -def test_filter_track_multi(datafiles, cli, tmpdir, kind): - repo = create_repo(kind, str(tmpdir)) +def test_filter_track_multi(datafiles, cli, tmpdir): + repo = create_repo('git', str(tmpdir)) ref = repo.create(os.path.join(str(datafiles), "files")) elements_dir = os.path.join(str(tmpdir), "elements") project = str(tmpdir) @@ -398,9 +394,8 @@ def test_filter_track_multi(datafiles, cli, tmpdir, kind): @pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic')) -@pytest.mark.parametrize("kind", [(kind) for kind in ALL_REPO_KINDS if kind not in ("patch", "local")]) -def test_filter_track_multi_exclude(datafiles, cli, tmpdir, kind): - repo = create_repo(kind, str(tmpdir)) +def test_filter_track_multi_exclude(datafiles, cli, tmpdir): + repo = create_repo('git', str(tmpdir)) ref = repo.create(os.path.join(str(datafiles), "files")) elements_dir = os.path.join(str(tmpdir), "elements") project = str(tmpdir) |