Improve logging of generators and writer loaders (#2821)

This commit is contained in:
Leonardo Giordani 2020-11-22 16:13:51 +00:00 committed by GitHub
commit afdf0fb3cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 33 deletions

View file

@ -84,14 +84,14 @@ class TestPelican(LoggedTestCase):
# have their output paths overridden by the {attach} link syntax.
pelican = Pelican(settings=read_settings(path=None))
generator_classes = pelican.get_generator_classes()
generator_classes = pelican._get_generator_classes()
self.assertTrue(
generator_classes[-1] is StaticGenerator,
"StaticGenerator must be the last generator, but it isn't!")
self.assertIsInstance(
generator_classes, Sequence,
"get_generator_classes() must return a Sequence to preserve order")
"_get_generator_classes() must return a Sequence to preserve order")
def test_basic_generation_works(self):
# when running pelican without settings, it should pick up the default