puppeteer_pdf/tests/tests.py
def _render_file(self, template, context):
        """Helper method for testing rendered file deleted/persists tests."""
        render = RenderedFile(template=template, context=context)
        render.temporary_file.seek(0)
        saved_content = smart_str(render.temporary_file.read())

        return (saved_content, render.filename)
Helper method for testing rendered file deleted/persists tests.
Helper method for testing rendered file deleted/persists tests.
Helper method for testing rendered file deleted / persists tests .
def _render_file(self, template, context):
        render = RenderedFile(template=template, context=context)
        render.temporary_file.seek(0)
        saved_content = smart_str(render.temporary_file.read())
        return (saved_content, render.filename)
def _render_file ( self , template , context ) : render = RenderedFile ( template = template , context = context ) render . temporary_file . seek ( 0 ) saved_content = smart_str ( render . temporary_file . read ( ) ) return ( saved_content , render . filename )
Helper method for testing rendered file deleted/persists tests.
Helper method for testing rendered file deleted / persists tests .
"""Helper method for testing rendered file deleted/persists tests."""
self
template
context