Skip to content

Commit

Permalink
Meh
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Aug 1, 2023
1 parent f162248 commit 9fd54a4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions tests/app/config_paths_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

@pytest.fixture
def voila_config_file_paths_arg():
os.path.join(BASE_DIR, "..", "configs", "general")
return "--VoilaTest.config_file_paths path"
return ["--VoilaTest.config_file_paths", os.path.join(BASE_DIR, "..", "configs", "general")]


def test_config_app(voila_app):
Expand Down
3 changes: 1 addition & 2 deletions tests/app/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def voila_args_extra():
@pytest.fixture
def voila_config_file_paths_arg():
# we don't want the tests to use any configuration on the system
return ""
return []


@pytest.fixture
Expand All @@ -35,7 +35,6 @@ def voila_args(voila_notebook, voila_args_extra, voila_config_file_paths_arg):
if os.environ.get("VOILA_TEST_DEBUG", False)
else []
)
voila_config_file_paths_arg = [voila_config_file_paths_arg] if voila_config_file_paths_arg else []
return [voila_notebook, *voila_config_file_paths_arg, *voila_args_extra, *debug_args]


Expand Down
3 changes: 1 addition & 2 deletions tests/app/nbextensions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def config(app):
@pytest.fixture
def voila_config_file_paths_arg():
# we don't want the tests to use any configuration on the system
os.path.abspath(os.path.join(BASE_DIR, "../configs/general"))
return "--VoilaTest.config_file_paths path"
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
3 changes: 1 addition & 2 deletions tests/app/preheat_configuration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

@pytest.fixture
def voila_config_file_paths_arg():
os.path.join(BASE_DIR, "..", "configs", "preheat")
return "--VoilaTest.config_file_paths path"
return ["--VoilaTest.config_file_paths", os.path.join(BASE_DIR, "..", "configs", "preheat")]


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions tests/app/preheat_multiple_notebooks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

@pytest.fixture
def voila_config_file_paths_arg():
os.path.join(BASE_DIR, "..", "configs", "preheat")
return "--VoilaTest.config_file_paths path"
return ["--VoilaTest.config_file_paths", os.path.join(BASE_DIR, "..", "configs", "preheat")]


@pytest.fixture
Expand Down

0 comments on commit 9fd54a4

Please sign in to comment.