52fc67e51e
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
11 lines
189 B
Python
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)
|