Initialize Lang unit tests

darcs-hash:20061122182346-86b55-e28481ce6f6854e048cd8c6d42f7de8ba10a21cb.gz
This commit is contained in:
David Rousselie
2006-11-22 19:23:46 +01:00
parent c0d0b29654
commit ab8efe060a
2 changed files with 37 additions and 5 deletions

View File

@@ -37,6 +37,7 @@ del sys.setdefaultencoding
import tests
from tests.jcl.jabber.test_component import *
from tests.jcl.jabber.test_feeder import *
from tests.jcl.test_lang import *
import jcl
@@ -49,20 +50,25 @@ if __name__ == '__main__':
feeder_component_suite = unittest.makeSuite(FeederComponent_TestCase, "test")
feeder_suite = unittest.makeSuite(Feeder_TestCase, "test")
sender_suite = unittest.makeSuite(Sender_TestCase, "test")
lang_suite = unittest.makeSuite(Lang_TestCase, "test")
jcl_suite = unittest.TestSuite()
# jcl_suite.addTest(FeederComponent_TestCase('test_handle_tick'))
# jcl_suite.addTest(FeederComponent_TestCase('test_handle_get_register_new'))
# jcl_suite = unittest.TestSuite((feeder_component_suite))
# jcl_suite = unittest.TestSuite((component_suite))
jcl_suite = unittest.TestSuite((component_suite,
feeder_component_suite,
feeder_suite,
sender_suite))
jcl_suite = unittest.TestSuite((component_suite, \
feeder_component_suite, \
feeder_suite, \
sender_suite, \
lang_suite))
test_support.run_suite(jcl_suite)
coverage.stop()
coverage.analysis(jcl.jabber.component)
coverage.analysis(jcl.jabber.feeder)
coverage.report([jcl.jabber.component, jcl.jabber.feeder])
coverage.analysis(jcl.lang)
coverage.report([jcl.jabber.component, \
jcl.jabber.feeder, \
jcl.lang])

26
tests/jcl/test_lang.py Normal file
View File

@@ -0,0 +1,26 @@
##
## test_lang.py
## Login : David Rousselie <dax@happycoders.org>
## Started on Wed Nov 22 19:19:25 2006 David Rousselie
## $Id$
##
## Copyright (C) 2006 David Rousselie
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##
import unittest
class Lang_TestCase(unittest.TestCase):
pass