flask-testing icon indicating copy to clipboard operation
flask-testing copied to clipboard

assertTemplateUsed mangles template names in failure message

Open davewsmith opened this issue 7 years ago • 0 comments

Mistyped a template name in an assertTemplateUsed call, and got

AssertionError: Template ndex.html not used. Templates were used: [ < T e m p l a t e   ' i n d e x . h t m l ' > ]

' '.join(repr(used_templates)) in assertTemplateUsed is the culprit.

PR with fix momentarily.

davewsmith avatar Jul 20 '18 20:07 davewsmith