Path:
strictdoc/export/html/generators/document_tree.py
Lines:
28
Non-empty lines:
23
Non-empty lines covered with requirements:
23 / 23 (100.0%)
Functions:
2
Functions covered by requirements:
2 / 2 (100.0%)
- "6.2.1. View project tree" (REQUIREMENT)
- "6.2.1. View project tree" (REQUIREMENT)
1
"""2
@relation(SDOC-SRS-53, scope=file)3
"""4
5
from markupsafe import Markup
6
7
from strictdoc.core.project_config import ProjectConfig
8
from strictdoc.core.traceability_index import TraceabilityIndex
9
from strictdoc.export.html.generators.view_objects.project_tree_view_object import (
10
ProjectTreeViewObject,
11
)12
from strictdoc.export.html.html_templates import HTMLTemplates
13
14
15
class DocumentTreeHTMLGenerator:
16
@staticmethod17
def export(
18
project_config: ProjectConfig,
19
traceability_index: TraceabilityIndex,
20
html_templates: HTMLTemplates,
21
) -> Markup:
22
assert isinstance(html_templates, HTMLTemplates)
23
24
view_object = ProjectTreeViewObject(
25
traceability_index=traceability_index,
26
project_config=project_config,
27
)28
return view_object.render_screen(html_templates.jinja_environment())