Thomas De Schampheleire
patrickdepinguin at gmail.com
Sun May 10 08:11:25 EDT 2015
On Sun, May 10, 2015 at 1:44 PM, Vitt2, Peter <peter.vitt2 at uni-siegen.de> wrote:
> After running into some translation problems with notifications, I just started to improve the make_description function. I also want to create two small tests that validate it's behaviour. But I’m struggling a bit with the test environment. Which test framework is used? Or is it home grown? How to find out which validation routines are present? From the current module I’m creating the tests in I already know assertEqual, however, I don’t know it’s exact interface. Basically, the question is: How/where to get information about tests in Kallithea?
Most test classes derive from BaseTestCase, in
kallithea/tests/__init__.py, which in turn derives from
unittest.TestCase. The available assert functions are thus those from
Documentation is at: https://docs.python.org/2/library/unittest.html
The tests can be run either with 'nosetests' and 'py.test'. Tests can
thus also take advantage of features of these frameworks, although
there may not be a lot of tests that currently do.
More information about the kallithea-general