diff --git a/src/reportengine/report.py b/src/reportengine/report.py index 8f8c317..9ca5eb9 100644 --- a/src/reportengine/report.py +++ b/src/reportengine/report.py @@ -31,7 +31,7 @@ """ from __future__ import generator_stop -import os.path as osp +import os import logging import subprocess import shutil @@ -61,7 +61,7 @@ def _process_template_text(source, *, filename=None): if filename: #PY36 - log.debug("Processing template %s" % osp.abspath(str(filename))) + log.debug("Processing template %s" % os.path.abspath(str(filename))) root = {} d = root @@ -109,7 +109,7 @@ class JinjaEnv(jinja2.Environment): def preprocess(self, source, name=None, filename=None): if filename: - log.debug("Processing template %s" % osp.abspath(filename)) + log.debug("Processing template %s" % os.path.abspath(filename)) root = {} d = root diff --git a/src/reportengine/tests/test_app.py b/src/reportengine/tests/test_app.py index f825d9b..602d160 100644 --- a/src/reportengine/tests/test_app.py +++ b/src/reportengine/tests/test_app.py @@ -5,11 +5,10 @@ @author: Zahari Kassabov """ import pytest -import ruamel.yaml from reportengine import app from reportengine.utils import yaml_safe - +from reportengine.tests.utils import tmp runcard =\ """