add 'test.py' to be generated by the 'base' recipe

This commit is contained in:
Romain Bignon 2013-02-14 23:34:26 +01:00
commit 329bf19905
2 changed files with 9 additions and 0 deletions

View file

@ -91,6 +91,7 @@ class BaseRecipe(Recipe):
self.write('backend.py', self.template('base_backend'))
self.write('browser.py', self.template('base_browser'))
self.write('pages.py', self.template('base_pages'))
self.write('test.py', self.template('base_test'))
class ComicRecipe(Recipe):

View file

@ -0,0 +1,8 @@
<%inherit file="layout.py"/>
from weboob.tools.test import BackendTest
class ${r.classname}Test(BackendTest):
BACKEND = '${r.name}'
def test_${r.name}(self):
raise NotImplementedError()