| 300 | |
| 301 | def test_pass_context_callable_class(self, env): |
| 302 | class CallableClass: |
| 303 | @pass_context |
| 304 | def __call__(self, ctx): |
| 305 | return ctx.resolve("hello") |
| 306 | |
| 307 | tpl = Template("""{{ callableclass() }}""") |
| 308 | output = tpl.render(callableclass=CallableClass(), hello="TEST") |
no outgoing calls