Menu
  • HOME
  • TAGS

What is the Flask version of Django's render_to_string function?

python,django,flask,tdd,render-to-string

Celeo is correct, but there are two additional things to consider (one of which is peculiar to the render_template function): First, it looks like you have an indentation problem in your revised function. It looks like you're calling rv.data outside of the "with" statement. The "assertEqual" statement should be within...