diff options
author | Benjamin Schubert <contact@benschubert.me> | 2020-03-20 16:19:52 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-05-11 16:27:12 +0000 |
commit | f5e8a54f095f28870d4c483ca56cc1abc01a2229 (patch) | |
tree | dff602ed10db0d5e11e625d60045a7ded826767c /tests | |
parent | db2039fe2f333bc33342b4168910b7ed0a626bbd (diff) | |
download | buildstream-f5e8a54f095f28870d4c483ca56cc1abc01a2229.tar.gz |
Update all packages requirements
Also fix linting errors coming with new version of pylint
Diffstat (limited to 'tests')
-rw-r--r-- | tests/frontend/artifact_list_contents.py | 2 | ||||
-rw-r--r-- | tests/frontend/init.py | 2 | ||||
-rw-r--r-- | tests/frontend/logging.py | 4 | ||||
-rw-r--r-- | tests/integration/shell.py | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/tests/frontend/artifact_list_contents.py b/tests/frontend/artifact_list_contents.py index a1473c806..8bd7bdeff 100644 --- a/tests/frontend/artifact_list_contents.py +++ b/tests/frontend/artifact_list_contents.py @@ -39,7 +39,7 @@ def test_artifact_list_exact_contents_element(cli, datafiles): # List the contents via the element name result = cli.run(project=project, args=["artifact", "list-contents", "import-bin.bst"]) assert result.exit_code == 0 - expected_output = "import-bin.bst:\n" "\tusr\n" "\tusr/bin\n" "\tusr/bin/hello\n\n" + expected_output = "import-bin.bst:\n\tusr\n\tusr/bin\n\tusr/bin/hello\n\n" assert expected_output in result.output diff --git a/tests/frontend/init.py b/tests/frontend/init.py index db1b9c955..3f897fb14 100644 --- a/tests/frontend/init.py +++ b/tests/frontend/init.py @@ -138,7 +138,7 @@ def test_element_path_interactive(cli, tmp_path, monkeypatch, element_path): def create(cls, *args, **kwargs): return DummyInteractiveApp(*args, **kwargs) - def _init_project_interactive(self, *args, **kwargs): # pylint: disable=arguments-differ + def _init_project_interactive(self, *args, **kwargs): # pylint: disable=signature-differs return ("project_name", "2.0", element_path) monkeypatch.setattr(App, "create", DummyInteractiveApp.create) diff --git a/tests/frontend/logging.py b/tests/frontend/logging.py index 7db37fa4c..6eb058990 100644 --- a/tests/frontend/logging.py +++ b/tests/frontend/logging.py @@ -48,9 +48,7 @@ def test_custom_logging(cli, tmpdir, datafiles): element_path = os.path.join(project, "elements") element_name = "fetch-test-git.bst" - custom_log_format = ( - "%{elapsed},%{elapsed-us},%{wallclock},%{wallclock-us}," "%{key},%{element},%{action},%{message}" - ) + custom_log_format = "%{elapsed},%{elapsed-us},%{wallclock},%{wallclock-us},%{key},%{element},%{action},%{message}" user_config = {"logging": {"message-format": custom_log_format}} cli.configure(user_config) diff --git a/tests/integration/shell.py b/tests/integration/shell.py index 11aba87da..42e486bac 100644 --- a/tests/integration/shell.py +++ b/tests/integration/shell.py @@ -331,7 +331,7 @@ def test_integration_external_workspace(cli, tmpdir_factory, datafiles, build_sh if guess_element: # Mutate the project.conf to use a default shell command project_file = os.path.join(project, "project.conf") - config_text = "shell:\n" " command: ['true']\n" + config_text = "shell:\n command: ['true']\n" with open(project_file, "a") as f: f.write(config_text) |