Hi Peter, On Sun, May 10, 2015 at 1:44 PM, Vitt2, Peter <[email protected]> wrote: > Hi, > > 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 unittest. 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. Best regards, Thomas _______________________________________________ kallithea-general mailing list [email protected] http://lists.sfconservancy.org/mailman/listinfo/kallithea-general
