Commit ee0ad675 authored by Jérome Perrin's avatar Jérome Perrin

component: test template should not suggest numbering tests

Don't even tell people it's possible to force ordering of test, because
test ordering should not matter ... unless tests are written in a way
that they are not really independant, which is a bad practice.
parent 27217d0d
...@@ -226,16 +226,15 @@ class Test(ERP5TypeTestCase): ...@@ -226,16 +226,15 @@ class Test(ERP5TypeTestCase):
# here, you can create the categories and objects your test will depend on # here, you can create the categories and objects your test will depend on
pass pass
def test_01_sampleTest(self): def test_sampleTest(self):
""" """
A Sample Test A Sample Test
For the method to be called during the test, For the method to be called during the test,
its name must start with 'test'. its name must start with 'test'.
The '_01_' part of the name is not mandatory,
it just allows you to define in which order the tests are to be launched. See https://docs.python.org/2/library/unittest.html for help with available
Tests methods (self.assert... and self.failIf...) assertion methods.
are defined in /usr/lib/python/unittest.py.
""" """
self.assertEqual(0, 1) self.assertEqual(0, 1)
''' % DEFAULT_TEST_TEMPLATE_COPYRIGHT ''' % DEFAULT_TEST_TEMPLATE_COPYRIGHT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment