spyglass/tests/unit
Ian H. Pittwood efe24d8a5f Use data objects for document generation
This is a follow-up change to [0] which further implements data objects
to be used in the generation of documents in Jinja2. The following
additions and changes are made:

- Adds helper functions to data objects to filter hosts and networks for
ease of use in Jinja2 templates
- Adds SiteDocumentData factory function to convert intermediary yaml
dictionaries into a SiteDocumentData object with all associated objects
- Updates Jinja2 templates to use data objects
- Cleans up overly complex looping in Jinja2
- Adds tests for new code in models.py

[0] https://review.opendev.org/#/c/662092/

Change-Id: I66ebfeaf5d6ca76b6dee5a2285a74bad8b06b720
2019-06-26 12:03:40 -05:00
..
data_extractor Use data objects for document generation 2019-06-26 12:03:40 -05:00
site_processors Use data objects for document generation 2019-06-26 12:03:40 -05:00
validators Add tests into Zuul config and Makefile 2019-06-17 16:09:25 +00:00
__init__.py Schema validation 2019-06-06 12:56:43 +00:00
test_cli.py Adds unit tests for Spyglass CLI 2019-06-17 16:56:18 +00:00