How to use the imgkit.config function in imgkit

To help you get started, we’ve selected a few imgkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jarrekk / imgkit / tests / imgkit-tests.py View on Github external
def test_custom_config(self):
        conf = imgkit.config()
        self.assertEqual('imgkit-', conf.meta_tag_prefix)
        conf = imgkit.config(meta_tag_prefix='prefix-')
        self.assertEqual('prefix-', conf.meta_tag_prefix)
        with self.assertRaises(IOError):
            imgkit.config(wkhtmltoimage='wrongpath')
github jarrekk / imgkit / tests / imgkit-tests.py View on Github external
def test_custom_config(self):
        conf = imgkit.config()
        self.assertEqual('imgkit-', conf.meta_tag_prefix)
        conf = imgkit.config(meta_tag_prefix='prefix-')
        self.assertEqual('prefix-', conf.meta_tag_prefix)
        with self.assertRaises(IOError):
            imgkit.config(wkhtmltoimage='wrongpath')
github jarrekk / imgkit / tests / imgkit-tests.py View on Github external
def test_custom_config(self):
        conf = imgkit.config()
        self.assertEqual('imgkit-', conf.meta_tag_prefix)
        conf = imgkit.config(meta_tag_prefix='prefix-')
        self.assertEqual('prefix-', conf.meta_tag_prefix)
        with self.assertRaises(IOError):
            imgkit.config(wkhtmltoimage='wrongpath')