From 929cfb5a8fd68f28960f9e6de43b1b7a7203c835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Sun, 28 Apr 2024 14:59:47 +0200 Subject: [PATCH] tests: Use `*.html.jinja` template in tests Issue-151: https://github.com/mkdocstrings/python/issues/151 --- tests/test_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_handler.py b/tests/test_handler.py index e1d92c18..9f833d12 100644 --- a/tests/test_handler.py +++ b/tests/test_handler.py @@ -62,7 +62,7 @@ def test_render_docstring_examples_section(handler: PythonHandler) -> None: (DocstringSectionKind.examples, ">>> print('Hello')\nHello"), ], ) - template = handler.env.get_template("docstring/examples.html") + template = handler.env.get_template("docstring/examples.html.jinja") rendered = template.render(section=section, locale="en") template.render(section=section, locale="not_existing") assert "

This is an example.

" in rendered