Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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')
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')
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')