summaryrefslogtreecommitdiff
path: root/tests/frontend/mirror.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-02-28 19:35:18 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-03-01 19:05:30 +0000
commit402cc7af5464f34d29909148dfb0876e56f97124 (patch)
tree2004c4888e528db25172ecb116d23713d3469873 /tests/frontend/mirror.py
parentd6d33c94751bd47ca77d2b2e4ac246a2dd1328a6 (diff)
downloadbuildstream-402cc7af5464f34d29909148dfb0876e56f97124.tar.gz
tests: Remove unused parameters in functions
For parameters that are required as part of an API, prefix them by "_" to make it clear they are unused
Diffstat (limited to 'tests/frontend/mirror.py')
-rw-r--r--tests/frontend/mirror.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/frontend/mirror.py b/tests/frontend/mirror.py
index 75810ccbd..aea7f49bf 100644
--- a/tests/frontend/mirror.py
+++ b/tests/frontend/mirror.py
@@ -271,7 +271,8 @@ def test_mirror_fetch_upstream_absent(cli, tmpdir, datafiles, kind):
@pytest.mark.datafiles(DATA_DIR)
-def test_mirror_fetch_multi(cli, tmpdir, datafiles):
+@pytest.mark.usefixtures("datafiles")
+def test_mirror_fetch_multi(cli, tmpdir):
output_file = os.path.join(str(tmpdir), "output.txt")
project_dir = str(tmpdir)
element_dir = os.path.join(project_dir, 'elements')
@@ -294,7 +295,8 @@ def test_mirror_fetch_multi(cli, tmpdir, datafiles):
@pytest.mark.datafiles(DATA_DIR)
-def test_mirror_fetch_default_cmdline(cli, tmpdir, datafiles):
+@pytest.mark.usefixtures("datafiles")
+def test_mirror_fetch_default_cmdline(cli, tmpdir):
output_file = os.path.join(str(tmpdir), "output.txt")
project_dir = str(tmpdir)
element_dir = os.path.join(project_dir, 'elements')
@@ -324,7 +326,8 @@ def test_mirror_fetch_default_cmdline(cli, tmpdir, datafiles):
@pytest.mark.datafiles(DATA_DIR)
-def test_mirror_fetch_default_userconfig(cli, tmpdir, datafiles):
+@pytest.mark.usefixtures("datafiles")
+def test_mirror_fetch_default_userconfig(cli, tmpdir):
output_file = os.path.join(str(tmpdir), "output.txt")
project_dir = str(tmpdir)
element_dir = os.path.join(project_dir, 'elements')
@@ -363,7 +366,8 @@ def test_mirror_fetch_default_userconfig(cli, tmpdir, datafiles):
@pytest.mark.datafiles(DATA_DIR)
-def test_mirror_fetch_default_cmdline_overrides_config(cli, tmpdir, datafiles):
+@pytest.mark.usefixtures("datafiles")
+def test_mirror_fetch_default_cmdline_overrides_config(cli, tmpdir):
output_file = os.path.join(str(tmpdir), "output.txt")
project_dir = str(tmpdir)
element_dir = os.path.join(project_dir, 'elements')