From 36191a0dab6a2df77a35bcf549923e811c42ec53 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 15:06:31 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/app/config_paths_test.py | 5 ++++- tests/app/conftest.py | 7 ++++++- tests/app/nbextensions_test.py | 5 ++++- tests/app/preheat_configuration_test.py | 5 ++++- tests/app/preheat_multiple_notebooks_test.py | 5 ++++- 5 files changed, 22 insertions(+), 5 deletions(-) diff --git a/tests/app/config_paths_test.py b/tests/app/config_paths_test.py index 16730957d..f826274ca 100644 --- a/tests/app/config_paths_test.py +++ b/tests/app/config_paths_test.py @@ -8,7 +8,10 @@ @pytest.fixture def voila_config_file_paths_arg(): - return ["--VoilaTest.config_file_paths", os.path.join(BASE_DIR, "..", "configs", "general")] + return [ + "--VoilaTest.config_file_paths", + os.path.join(BASE_DIR, "..", "configs", "general"), + ] def test_config_app(voila_app): diff --git a/tests/app/conftest.py b/tests/app/conftest.py index e271f8623..8e060fde5 100644 --- a/tests/app/conftest.py +++ b/tests/app/conftest.py @@ -35,7 +35,12 @@ def voila_args(voila_notebook, voila_args_extra, voila_config_file_paths_arg): if os.environ.get("VOILA_TEST_DEBUG", False) else [] ) - return [voila_notebook, *voila_config_file_paths_arg, *voila_args_extra, *debug_args] + return [ + voila_notebook, + *voila_config_file_paths_arg, + *voila_args_extra, + *debug_args, + ] @pytest.fixture diff --git a/tests/app/nbextensions_test.py b/tests/app/nbextensions_test.py index 3c7da6614..abde08368 100644 --- a/tests/app/nbextensions_test.py +++ b/tests/app/nbextensions_test.py @@ -19,7 +19,10 @@ def config(app): @pytest.fixture def voila_config_file_paths_arg(): # we don't want the tests to use any configuration on the system - return ["--VoilaTest.config_file_paths", os.path.abspath(os.path.join(BASE_DIR, "../configs/general"))] + return [ + "--VoilaTest.config_file_paths", + os.path.abspath(os.path.join(BASE_DIR, "../configs/general")), + ] @pytest.mark.skip(reason="TODO: update for JupyterLab extensions") diff --git a/tests/app/preheat_configuration_test.py b/tests/app/preheat_configuration_test.py index 6e1f750d8..fd93d5770 100644 --- a/tests/app/preheat_configuration_test.py +++ b/tests/app/preheat_configuration_test.py @@ -12,7 +12,10 @@ @pytest.fixture def voila_config_file_paths_arg(): - return ["--VoilaTest.config_file_paths", os.path.join(BASE_DIR, "..", "configs", "preheat")] + return [ + "--VoilaTest.config_file_paths", + os.path.join(BASE_DIR, "..", "configs", "preheat"), + ] @pytest.fixture diff --git a/tests/app/preheat_multiple_notebooks_test.py b/tests/app/preheat_multiple_notebooks_test.py index f6bf48251..765a38764 100644 --- a/tests/app/preheat_multiple_notebooks_test.py +++ b/tests/app/preheat_multiple_notebooks_test.py @@ -12,7 +12,10 @@ @pytest.fixture def voila_config_file_paths_arg(): - return ["--VoilaTest.config_file_paths", os.path.join(BASE_DIR, "..", "configs", "preheat")] + return [ + "--VoilaTest.config_file_paths", + os.path.join(BASE_DIR, "..", "configs", "preheat"), + ] @pytest.fixture