Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 1, 2023
1 parent 9fd54a4 commit 36191a0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
5 changes: 4 additions & 1 deletion tests/app/config_paths_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
7 changes: 6 additions & 1 deletion tests/app/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tests/app/nbextensions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
5 changes: 4 additions & 1 deletion tests/app/preheat_configuration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tests/app/preheat_multiple_notebooks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36191a0

Please sign in to comment.