add 'test.py' to be generated by the 'base' recipe
This commit is contained in:
parent
60197c4e96
commit
329bf19905
2 changed files with 9 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ class BaseRecipe(Recipe):
|
||||||
self.write('backend.py', self.template('base_backend'))
|
self.write('backend.py', self.template('base_backend'))
|
||||||
self.write('browser.py', self.template('base_browser'))
|
self.write('browser.py', self.template('base_browser'))
|
||||||
self.write('pages.py', self.template('base_pages'))
|
self.write('pages.py', self.template('base_pages'))
|
||||||
|
self.write('test.py', self.template('base_test'))
|
||||||
|
|
||||||
|
|
||||||
class ComicRecipe(Recipe):
|
class ComicRecipe(Recipe):
|
||||||
|
|
|
||||||
8
tools/boilerplate_data/base_test.py
Normal file
8
tools/boilerplate_data/base_test.py
Normal 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()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue