[apycotlib] move registration of checkers in recipes
authorPaul Tonelli <paul.tonelli@logilab.fr>
Tue, 20 Aug 2013 18:36:05 +0200
changeset 1435 e46aceaf338c
parent 1434 a9f785f79a3c
child 1436 75d64b47ddf7
[apycotlib] move registration of checkers in recipes
_apycotlib/narvalactions.py
recipes.py
--- a/_apycotlib/narvalactions.py	Wed Jul 24 14:10:35 2013 +0200
+++ b/_apycotlib/narvalactions.py	Tue Aug 20 18:36:05 2013 +0200
@@ -1,6 +1,5 @@
 from apycotlib import atest, writer, ERROR
 from apycotlib import preprocessors # trigger registration
-from apycotlib.checkers import python, debian, scenarios # trigger registration
 
 class apycot_environment(object):
     def __init__(self, plan):
--- a/recipes.py	Wed Jul 24 14:10:35 2013 +0200
+++ b/recipes.py	Tue Aug 20 18:36:05 2013 +0200
@@ -1,6 +1,7 @@
 """functions to create defaut apycot recipes"""
 
 quick_script = u'''
+from apycotlib.checkers import python # trigger registration
 from apycotlib import narvalactions as na
 # `plan`
 
@@ -14,6 +15,7 @@
 
 full_script = u'''
 from apycotlib import narvalactions as na
+from apycotlib.checkers import python # trigger registration
 # `plan`
 
 with na.apycot_environment(plan) as test:
@@ -59,3 +61,4 @@
     return session.create_entity('Recipe', name=u'apycot.recipe.scenario_runner',
                                  script=scenario_runner_script)
 
+