diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-08-30 15:02:41 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-08-30 15:02:41 +0900 |
commit | d28e13533abe20424d789b0f76bcc1474c9fdbaf (patch) | |
tree | 49e0516fb731d83e84a64020c928f5ddfbfb0f44 /tests/plugins | |
parent | c7b72c3066846f25d6fbf5589ef0da29435f60d6 (diff) | |
download | buildstream-d28e13533abe20424d789b0f76bcc1474c9fdbaf.tar.gz |
tests/plugins/filter.py: Don't run redundant tests
There is no reason that the filter element codepaths can behave
differently depending on the Source implementation used in the test,
as the Source implementation does not have any filter specific
virtual methods.
Removing the redundant tests and just performing these tests with the git source.
Diffstat (limited to 'tests/plugins')
-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) |