From 8599a9244f5424db3cdadb5e66e15d4747dcc1cb Mon Sep 17 00:00:00 2001 From: martinRenou Date: Thu, 13 Jun 2019 16:07:44 +0200 Subject: [PATCH] Fix tests --- tests/app/template_cli_test.py | 2 +- tests/test_template/setup.py | 2 +- .../templates/voila/test_template/{voila.tpl => index.html} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename tests/test_template/share/jupyter/templates/voila/test_template/{voila.tpl => index.html} (100%) diff --git a/tests/app/template_cli_test.py b/tests/app/template_cli_test.py index f859a294a..45a0cc35c 100644 --- a/tests/app/template_cli_test.py +++ b/tests/app/template_cli_test.py @@ -8,7 +8,7 @@ @pytest.fixture def voila_args_extra(): - path_test_template = os.path.abspath(os.path.join(BASE_DIR, 'test_template/share/jupyter/templates/voila/test_template/')) + path_test_template = os.path.abspath(os.path.join(BASE_DIR, '../test_template/share/jupyter/templates/voila/test_template/')) path_default = os.path.abspath(os.path.join(BASE_DIR, '../../share/jupyter/templates/voila/default')) return ['--template=None', '--VoilaTest.template_paths=[%r, %r]' % (path_test_template, path_default)] diff --git a/tests/test_template/setup.py b/tests/test_template/setup.py index baedaed65..e3905ce5e 100644 --- a/tests/test_template/setup.py +++ b/tests/test_template/setup.py @@ -3,7 +3,7 @@ data_files = [] -for (dirpath, dirnames, filenames) in os.walk('share/jupyter/voila/templates/'): +for (dirpath, dirnames, filenames) in os.walk('share/jupyter/templates/voila'): if filenames: data_files.append((dirpath, [os.path.join(dirpath, filename) for filename in filenames])) diff --git a/tests/test_template/share/jupyter/templates/voila/test_template/voila.tpl b/tests/test_template/share/jupyter/templates/voila/test_template/index.html similarity index 100% rename from tests/test_template/share/jupyter/templates/voila/test_template/voila.tpl rename to tests/test_template/share/jupyter/templates/voila/test_template/index.html