jarus / flask-testing

Unittest extensions for Flask
http://pythonhosted.org/Flask-Testing/
Other
501 stars 110 forks source link

Make _add_template add to list, not overwrite it. #122

Open cansar opened 6 years ago

cansar commented 6 years ago

Fix #38 get_context_variable and other functions support looping through a list of templates. Unfortunately this list currently always has at most 1 element which looks like a bug. This change allows testing requests that use multiple render_template calls as long as the parameter name is different. It should not have any other problems.