Commit c6839174 authored by Ondřej Borýsek's avatar Ondřej Borýsek
Browse files

Refactor templates_path in tests

parent 169da657
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ import pytest
from pytest_steps import test_steps
from copy import deepcopy

from template_scan2report import TemplateScan2Report
from tests.test_findings_parsing import find_all_scanner_test_files
from scan2report import scan2report as s2r
from scan2report.scan2report import Scan2ReportData, Scan2ReportConfig
@@ -31,7 +32,7 @@ def input_files():


def templates_path(locale: str = LOCALE, original: bool = False) -> str:
    return os.path.join(config.SCAN2REPORT_PLUGINS_FOLDER, locale) + ('/templates' if original else '')
    return TemplateScan2Report.native_folder_name_for_locale(locale, original)


def list_json_files(folder_path: str) -> List[str]: