Module: safe_qgis.test_html_renderer
InaSAFE Disaster risk assessment tool developed by AusAid and World Bank
- GUI Test Cases.
Contact : ole.moller.nielsen@gmail.com
Note
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
-
class safe_qgis.test_html_renderer.HtmlRendererTest(methodName='runTest')[source]
Test the InaSAFE Html Renderer
-
sampleHtml(theLineCount=100)[source]
Helper function to generate some sample html.
- Args:
- theLineCount: How many lines of fake html you want. Default is 100.
- Returns:
- str: an html snippet containing a table with theLineCount rows.
- Raises:
- None
-
test_printImpactTable()[source]
Test that we can render html from impact table keywords.
-
test_printToPdf()[source]
Test that we can render some html to a pdf (most common use case).
-
test_renderHtmlToPixmap()[source]
Test that we can render html to a pixmap.
This module forms part of the InaSAFE tool.