From ecc97bd9a6a1233509c38ee3ce1d895e588873d0 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 30 May 2025 17:08:38 +0200 Subject: [PATCH] coding style issues fixed --- tests/test_rendering_example2_doc.py | 2 -- tests/test_template_functions.py | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/test_rendering_example2_doc.py b/tests/test_rendering_example2_doc.py index 52a9f20..8125797 100644 --- a/tests/test_rendering_example2_doc.py +++ b/tests/test_rendering_example2_doc.py @@ -90,8 +90,6 @@ def test_html_render(): document_validation.validate_html(html_code, VALIDATE_HTML_CODE_ONLINE) - title = 'Test HTML Render 2' - if WRITE_RESULT_FILES: with open('tests/out/test_html_render2.html', 'w', encoding='utf-8') as f: f.write(pyladoc.inject_to_template({'CONTENT': html_code}, internal_template='templates/test_template.html')) diff --git a/tests/test_template_functions.py b/tests/test_template_functions.py index 77602f8..f5ccbcc 100644 --- a/tests/test_template_functions.py +++ b/tests/test_template_functions.py @@ -1,5 +1,6 @@ import pyladoc + def test_inject_to_template(): template = """ @@ -15,14 +16,13 @@ def test_inject_to_template(): """ - + content = "Hello, World!" title = "Test Title" - - result = pyladoc.inject_to_template({'CONTENT': content, 'TITLE': title},template_string=template) + result = pyladoc.inject_to_template({'CONTENT': content, 'TITLE': title}, template_string=template) print(result) - + assert "Hello, World!" in result - assert "Test Title" in result \ No newline at end of file + assert "Test Title" in result