Skip to content

Commit d64a8c0

Browse files
martinRenoutrungleduc
authored andcommitted
Try fixing tests
1 parent 7459d6b commit d64a8c0

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

tests/server/cwd_subdir_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ def cwd_subdir_notebook_url(base_url):
99

1010

1111
@pytest.fixture
12-
def voila_args(notebook_directory, voila_args_extra):
13-
return ['--VoilaTest.root_dir=%r' % notebook_directory] + voila_args_extra
12+
def jupyter_server_args_extra(notebook_directory):
13+
return ['--ServerApp.root_dir=%r' % notebook_directory]
1414

1515

1616
async def test_hello_world(http_server_client, cwd_subdir_notebook_url):

tests/server/execute_cpp_test.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@ def cpp_file_url(base_url):
1010

1111

1212
@pytest.fixture
13-
def jupyter_server_args_extra():
14-
return ['--VoilaConfiguration.extension_language_mapping={".xcpp": "C++11"}']
15-
16-
17-
@pytest.fixture
18-
def voila_args(notebook_directory, voila_args_extra):
19-
return ['--VoilaTest.root_dir=%r' % notebook_directory] + voila_args_extra
13+
def jupyter_server_args_extra(notebook_directory):
14+
return ['--ServerApp.root_dir=%r' % notebook_directory, '--VoilaConfiguration.extension_language_mapping={".xcpp": "C++11"}']
2015

2116

2217
@pytest.mark.skipif(not TEST_XEUS_CLING, reason='opt in to avoid having to install xeus-cling')

tests/server/tree_test.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@
33

44

55
@pytest.fixture
6-
def voila_args(notebook_directory, voila_args_extra):
7-
return ['--VoilaTest.root_dir=%r' % notebook_directory] + voila_args_extra
8-
9-
10-
@pytest.fixture
11-
def jupyter_server_args_extra():
12-
return ['--VoilaConfiguration.extension_language_mapping={".xcpp": "C++11"}']
6+
def jupyter_server_args_extra(notebook_directory):
7+
return ['--ServerApp.root_dir=%r' % notebook_directory, '--VoilaConfiguration.extension_language_mapping={".xcpp": "C++11"}']
138

149

1510
async def test_tree(http_server_client, base_url):

0 commit comments

Comments
 (0)