def test_docstitle_uses_slidetitle(self, app, *args): builder = app.builder builder.prepare_writing([]) self.assertEqual( builder.globalcontext['docstitle'], 'SLIDES TITLE', )
def test_docstitle_fallback_to_html_title(self, app, status, warning): builder = app.builder builder.prepare_writing([]) self.assertEqual( builder.globalcontext['docstitle'], builder.config.html_title, )
def test_docstitle_fallback_to_html_title(self): app = TestApp() builder = hieroglyph.builder.SlideBuilder(app) builder.prepare_writing([]) self.assertEqual( builder.globalcontext['docstitle'], builder.config.html_title, )
def test_docstitle_uses_slidetitle(self): app = TestApp(confoverrides={ 'slide_title': 'SLIDES TITLE', }, ) builder = hieroglyph.builder.SlideBuilder(app) builder.prepare_writing([]) self.assertEqual( builder.globalcontext['docstitle'], 'SLIDES TITLE', )
def test_docstitle_uses_slidetitle(self): app = TestApp( confoverrides={ 'slide_title': 'SLIDES TITLE', }, ) builder = hieroglyph.builder.SlideBuilder(app) builder.prepare_writing([]) self.assertEqual( builder.globalcontext['docstitle'], 'SLIDES TITLE', )