trove/generate_examples.py
Tim Simpson 52fc67e51e Create example generator
This code adds a feature to the tests where all of the example
snippets are generated and then validated. Tests fail if the new
examples don't match the old ones, meaning a dev changing the API
must update the snippets, triggering a conversation about the changes
during the pull request.

Implements: blueprint example-snippet-generator
Change-Id: I5f1bfd47558a646a56e519614ae76a55759a4422
2014-11-17 13:51:24 -06:00

11 lines
189 B
Python

import run_tests
def import_tests():
from trove.tests.examples import snippets
snippets.monkey_patch_uuid_and_date()
if __name__ == "__main__":
run_tests.main(import_tests)