diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-02-28 19:35:18 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-03-01 19:05:30 +0000 |
commit | 402cc7af5464f34d29909148dfb0876e56f97124 (patch) | |
tree | 2004c4888e528db25172ecb116d23713d3469873 /tests/examples | |
parent | d6d33c94751bd47ca77d2b2e4ac246a2dd1328a6 (diff) | |
download | buildstream-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/examples')
-rw-r--r-- | tests/examples/autotools.py | 4 | ||||
-rw-r--r-- | tests/examples/developing.py | 4 | ||||
-rw-r--r-- | tests/examples/first-project.py | 2 | ||||
-rw-r--r-- | tests/examples/flatpak-autotools.py | 4 | ||||
-rw-r--r-- | tests/examples/integration-commands.py | 4 | ||||
-rw-r--r-- | tests/examples/junctions.py | 4 | ||||
-rw-r--r-- | tests/examples/running-commands.py | 4 |
7 files changed, 13 insertions, 13 deletions
diff --git a/tests/examples/autotools.py b/tests/examples/autotools.py index 96827ff4c..d653cdcd2 100644 --- a/tests/examples/autotools.py +++ b/tests/examples/autotools.py @@ -17,7 +17,7 @@ DATA_DIR = os.path.join( reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') @pytest.mark.datafiles(DATA_DIR) -def test_autotools_build(cli, tmpdir, datafiles): +def test_autotools_build(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) checkout = os.path.join(cli.directory, 'checkout') @@ -40,7 +40,7 @@ def test_autotools_build(cli, tmpdir, datafiles): reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') @pytest.mark.datafiles(DATA_DIR) -def test_autotools_run(cli, tmpdir, datafiles): +def test_autotools_run(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) result = cli.run(project=project, args=['build', 'hello.bst']) diff --git a/tests/examples/developing.py b/tests/examples/developing.py index 3ef78fd36..a5e3c2d9a 100644 --- a/tests/examples/developing.py +++ b/tests/examples/developing.py @@ -18,7 +18,7 @@ DATA_DIR = os.path.join( reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') @pytest.mark.datafiles(DATA_DIR) -def test_autotools_build(cli, tmpdir, datafiles): +def test_autotools_build(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) checkout = os.path.join(cli.directory, 'checkout') @@ -39,7 +39,7 @@ def test_autotools_build(cli, tmpdir, datafiles): reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') @pytest.mark.datafiles(DATA_DIR) -def test_run_unmodified_hello(cli, tmpdir, datafiles): +def test_run_unmodified_hello(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) result = cli.run(project=project, args=['build', 'hello.bst']) diff --git a/tests/examples/first-project.py b/tests/examples/first-project.py index 35839770c..efbea4d0c 100644 --- a/tests/examples/first-project.py +++ b/tests/examples/first-project.py @@ -16,7 +16,7 @@ DATA_DIR = os.path.join( @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) -def test_first_project_build_checkout(cli, tmpdir, datafiles): +def test_first_project_build_checkout(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) checkout = os.path.join(cli.directory, 'checkout') diff --git a/tests/examples/flatpak-autotools.py b/tests/examples/flatpak-autotools.py index 454b8d0bb..44b0ef93d 100644 --- a/tests/examples/flatpak-autotools.py +++ b/tests/examples/flatpak-autotools.py @@ -36,7 +36,7 @@ def workaround_setuptools_bug(project): reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_OSTREE, reason='Only available on linux with ostree') @pytest.mark.datafiles(DATA_DIR) -def test_autotools_build(cli, tmpdir, datafiles): +def test_autotools_build(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) checkout = os.path.join(cli.directory, 'checkout') workaround_setuptools_bug(project) @@ -59,7 +59,7 @@ def test_autotools_build(cli, tmpdir, datafiles): reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_OSTREE, reason='Only available on linux with ostree') @pytest.mark.datafiles(DATA_DIR) -def test_autotools_run(cli, tmpdir, datafiles): +def test_autotools_run(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) workaround_setuptools_bug(project) diff --git a/tests/examples/integration-commands.py b/tests/examples/integration-commands.py index aabf56220..72869dde1 100644 --- a/tests/examples/integration-commands.py +++ b/tests/examples/integration-commands.py @@ -16,7 +16,7 @@ DATA_DIR = os.path.join( reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') @pytest.mark.datafiles(DATA_DIR) -def test_integration_commands_build(cli, tmpdir, datafiles): +def test_integration_commands_build(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) result = cli.run(project=project, args=['build', 'hello.bst']) @@ -28,7 +28,7 @@ def test_integration_commands_build(cli, tmpdir, datafiles): reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') @pytest.mark.datafiles(DATA_DIR) -def test_integration_commands_run(cli, tmpdir, datafiles): +def test_integration_commands_run(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) result = cli.run(project=project, args=['build', 'hello.bst']) diff --git a/tests/examples/junctions.py b/tests/examples/junctions.py index 3992b1520..e05fbf322 100644 --- a/tests/examples/junctions.py +++ b/tests/examples/junctions.py @@ -17,7 +17,7 @@ DATA_DIR = os.path.join( reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') @pytest.mark.datafiles(DATA_DIR) -def test_build(cli, tmpdir, datafiles): +def test_build(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) result = cli.run(project=project, args=['build', 'callHello.bst']) @@ -29,7 +29,7 @@ def test_build(cli, tmpdir, datafiles): reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') @pytest.mark.datafiles(DATA_DIR) -def test_shell_call_hello(cli, tmpdir, datafiles): +def test_shell_call_hello(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) result = cli.run(project=project, args=['build', 'callHello.bst']) diff --git a/tests/examples/running-commands.py b/tests/examples/running-commands.py index 1fad3e651..41a0e4cf0 100644 --- a/tests/examples/running-commands.py +++ b/tests/examples/running-commands.py @@ -16,7 +16,7 @@ DATA_DIR = os.path.join( reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') @pytest.mark.datafiles(DATA_DIR) -def test_running_commands_build(cli, tmpdir, datafiles): +def test_running_commands_build(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) result = cli.run(project=project, args=['build', 'hello.bst']) @@ -28,7 +28,7 @@ def test_running_commands_build(cli, tmpdir, datafiles): reason='Examples are writtent for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') @pytest.mark.datafiles(DATA_DIR) -def test_running_commands_run(cli, tmpdir, datafiles): +def test_running_commands_run(cli, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) result = cli.run(project=project, args=['build', 'hello.bst']) |