def get_lessons(slugs, path): if path: path = Path(path) result = naucse_render.get_lessons(slugs, path=path) print(json.dumps(result, indent=4, ensure_ascii=False))
def test_render_lesson(slug): path = fixture_path / 'test_content' lesson_info = naucse_render.get_lessons([slug], path=str(path)) assert_yaml_dump(lesson_info, slug + '.yaml')
def get_lessons(self, lesson_slugs, *, vars): """Return information about the given lessons""" return naucse_render.get_lessons(lesson_slugs, vars=vars, path=self.path)