Skip to content

Commit ac24e06

Browse files
committed
rollback test_execute_templates.py
1 parent 35d89e1 commit ac24e06

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
import datetime
22
import uuid
3-
import os
3+
44
import pytest
5-
from notebooker.execute_notebook import _run_checks
6-
from notebooker import notebook_templates_example
7-
from ..utils import all_templates
85

6+
from notebooker.execute_notebook import _run_checks
97

10-
@pytest.fixture(scope="module")
11-
def py_template_base_dir():
12-
return os.path.abspath(notebook_templates_example.__path__[0])
8+
from ..utils import all_templates
139

1410

1511
@pytest.mark.parametrize("template_name", all_templates())
16-
def test_execution_of_templates(template_name, template_dir, output_dir, flask_app, py_template_base_dir):
12+
def test_execution_of_templates(template_name, template_dir, output_dir, flask_app):
13+
flask_app.config["PY_TEMPLATE_DIR"] = ""
1714
with flask_app.app_context():
1815
_run_checks(
1916
"job_id_{}".format(str(uuid.uuid4())[:6]),
@@ -23,6 +20,5 @@ def test_execution_of_templates(template_name, template_dir, output_dir, flask_a
2320
output_dir,
2421
template_dir,
2522
{},
26-
py_template_base_dir=py_template_base_dir,
2723
generate_pdf_output=False,
28-
)
24+
)

0 commit comments

Comments
 (0)