migration/create_recipes.py
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 17 Jun 2014 14:11:15 +0200
changeset 1530 050d0a67b616
parent 802 e08097e621ee
permissions -rw-r--r--
[narval] Fix pypi.upload checker (closes #4002584) 1. NameError for apycotlib 2. NotImplementedError because apycot was looking for a do_check() method, not run() And drop the unused path argument to do_check.

from cubes.apycot import recipes

rql('DELETE Recipe R', ask_confirm=False)

for recipe in dir(recipes):
    if recipe.startswith('create_'):
        print recipe
        getattr(recipes, recipe)(session)

# define new recipes for current test config
rql('SET X use_recipe Y WHERE X name "quick", Y name "apycot.recipe.quick"')
rql('SET X use_recipe Y WHERE X name "full", Y name "apycot.recipe.full"')

commit()