| Conditions | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | 1 | from lxml.etree import QName |
|
| 20 | 1 | def html_str(self, templates_path=None) -> str: |
|
| 21 | 1 | if templates_path: |
|
| 22 | 1 | env = PDFEnvironment(templates_path=templates_path) |
|
| 23 | 1 | init_template = env.get_template("_init.html") |
|
| 24 | else: |
||
| 25 | 1 | init_template = PDF_INIT_TEMPLATE |
|
| 26 | |||
| 27 | 1 | return init_template.render({"c": self, "k": QName(self.tag).localname}) |
|
| 28 | |||
| 39 |