@@ -23,37 +23,28 @@ def voila_notebook(notebook_directory):
2323 return os .path .join (notebook_directory , 'print.ipynb' )
2424
2525
26- @pytest .fixture
26+ @pytest .fixture ( autouse = 1 )
2727def get_jupyter_kernels (env_jupyter_path ):
2828 src = sys .prefix + '/share/jupyter/kernels'
2929 dst = str (env_jupyter_path ) + '/kernels'
3030 shutil .copytree (src , dst )
3131
3232
33- @pytest .fixture
34- def get_nbconvert_template (env_jupyter_path ):
33+ @pytest .fixture ( autouse = 1 )
34+ def get_nbconvert_templates (env_jupyter_path ):
3535 src = sys .prefix + '/share/jupyter/nbconvert'
3636 dst = str (env_jupyter_path ) + '/nbconvert'
3737 shutil .copytree (src , dst )
3838
3939
40- @pytest .fixture
41- def get_jupyter_config (environ ):
42- dir_path = os .path .dirname (os .path .realpath (__file__ ))
43- src = f'{ dir_path } /../etc/jupyter/jupyter_server_config.d/voila.json'
44- dst = os .environ ['JUPYTER_CONFIG_DIR' ]
45- shutil .copyfile (src , dst )
46-
47-
48- @pytest .fixture
49- def get_test_template (env_jupyter_path ):
50- dir_path = os .path .dirname (os .path .realpath (__file__ ))
51- src = f'{ dir_path } /test_template/share/jupyter/voila'
40+ @pytest .fixture (autouse = 1 )
41+ def get_voila_templates (env_jupyter_path ):
42+ src = sys .prefix + '/share/jupyter/voila'
5243 dst = str (env_jupyter_path ) + '/voila'
5344 shutil .copytree (src , dst )
5445
5546
56- @pytest .fixture
47+ @pytest .fixture ( autouse = 1 )
5748def get_nbextensions (env_jupyter_path ):
5849 src = sys .prefix + '/share/jupyter/nbextensions'
5950 dst = str (env_jupyter_path ) + '/nbextensions'
0 commit comments