def reset_test_db(): """ Drops all tables and recreates them. To be done once per schema change to update toy.db. """ logger.info("Resetting all tables in %s", test_config['dbhost']) models.drop_all_tables(test_config) models.setup_db(test_config)