Tests

This section documents the Ulwazi theme test suite. See the list of tests implemented in Ulwazi below.

Basic tests:

  • Site validation (tests/test_site_validation.py) — verifies the built HTML has no broken assets (missing CSS, JS, images).

  • SCSS propagation (tests/test_scss_propagation.py) — checks that custom SCSS classes reach the rendered HTML with the expected computed styles.

  • PDF generation (tests/test_pdf_generation.py) — verifies PDF generation produces the expected output file. (slow)

More advanced tests: