MCPcopy Create free account
hub / github.com/pallets/flask / my_reverse

Function my_reverse

tests/test_templating.py:125–126  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

123def test_template_filter(app):
124 @app.template_filter()
125 def my_reverse(s):
126 return s[::-1]
127
128 assert "my_reverse" in app.jinja_env.filters.keys()
129 assert app.jinja_env.filters["my_reverse"] == my_reverse

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected