How to use the pelican.readers.Readers function in pelican

To help you get started, we’ve selected a few pelican 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 noirbizarre / pelican-microdata / microdata / tests.py View on Github external
def assert_rst_equal(self, rstfile, expected, **kwargs):
        pelican = Pelican(settings=get_settings(**kwargs))
        reader = Readers(pelican.settings)
        content = reader.read_file(base_path=RESOURCES_PATH, path=rstfile).content
        self.assertEqual(normalize(content), normalize(expected))