Path 1: 8 calls (1.0)

test_template_test..boolean def (1) test_add_template_test..boolean def (1) test_template_test_with_name..is_boolean def (1) t...

None (4) 'boolean' (4)

1@setupmethod
2    def add_template_test(
3        self, f: ft.TemplateTestCallable, name: str | None = None
4    ) -> None:
5        """Register a custom template test.  Works exactly like the
6        :meth:`template_test` decorator.
7
8        .. versionadded:: 0.10
9
10        :param name: the optional name of the test, otherwise the
11                     function name will be used.
12        """
13        self.jinja_env.tests[name or f.__name__] = f