[Pymoul-svn] SF.net SVN: pymoul: [39] pymoul/trunk/src/moul
Status: Alpha
Brought to you by:
tiran
From: <ti...@us...> - 2007-01-17 11:28:11
|
Revision: 39 http://pymoul.svn.sourceforge.net/pymoul/?rev=39&view=rev Author: tiran Date: 2007-01-17 03:28:12 -0800 (Wed, 17 Jan 2007) Log Message: ----------- Added unit test stubs. ATM most unit tests are NOOPs that simply import the module and try to apply a DocTestSuite. At least the tests are catching syntax errors :) Modified Paths: -------------- pymoul/trunk/src/moul/crypt/tests/test_elf.py pymoul/trunk/src/moul/crypt/tests/test_wdys.py pymoul/trunk/src/moul/qt/moulqt.py pymoul/trunk/src/moul/qt/ui/mainwindow.py pymoul/trunk/src/moul/tests/test_i18n.py pymoul/trunk/src/moul/time/tests/test_cavern.py Added Paths: ----------- pymoul/trunk/src/moul/file/tests/test_chatlog.py pymoul/trunk/src/moul/file/tests/test_kiimage.py pymoul/trunk/src/moul/file/tests/test_localization.py pymoul/trunk/src/moul/file/tests/test_plasmalog.py pymoul/trunk/src/moul/file/tests/test_wdysini.py pymoul/trunk/src/moul/time/tests/test_dni.py Modified: pymoul/trunk/src/moul/crypt/tests/test_elf.py =================================================================== --- pymoul/trunk/src/moul/crypt/tests/test_elf.py 2007-01-16 21:39:46 UTC (rev 38) +++ pymoul/trunk/src/moul/crypt/tests/test_elf.py 2007-01-17 11:28:12 UTC (rev 39) @@ -48,6 +48,7 @@ def test_suite(): return unittest.TestSuite(( unittest.makeSuite(ElfTest), + DocTestSuite('moul.crypt.elf'), )) if __name__ == '__main__': Modified: pymoul/trunk/src/moul/crypt/tests/test_wdys.py =================================================================== --- pymoul/trunk/src/moul/crypt/tests/test_wdys.py 2007-01-16 21:39:46 UTC (rev 38) +++ pymoul/trunk/src/moul/crypt/tests/test_wdys.py 2007-01-17 11:28:12 UTC (rev 39) @@ -62,6 +62,8 @@ def test_suite(): return unittest.TestSuite(( unittest.makeSuite(WDYSTest), + DocTestSuite('moul.crypt.whatdoyousee'), + DocTestSuite('moul.crypt.xtea'), )) if __name__ == '__main__': Added: pymoul/trunk/src/moul/file/tests/test_chatlog.py =================================================================== --- pymoul/trunk/src/moul/file/tests/test_chatlog.py (rev 0) +++ pymoul/trunk/src/moul/file/tests/test_chatlog.py 2007-01-17 11:28:12 UTC (rev 39) @@ -0,0 +1,35 @@ +# pyMoul - Python interface to Myst Online URU Live +# Copyright (C) 2007 Christian Heimes <christian (at) cheimes (dot) de> + +# 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 +# +"""moul.file. unit tests +""" +__author__ = "Christian Heimes" +__version__ = "$Id$" +__revision__ = "$Revision$" + +import unittest +from doctest import DocTestSuite + +import moul.file.chatlog + +def test_suite(): + return unittest.TestSuite(( + DocTestSuite('moul.file.chatlog') + )) + +if __name__ == '__main__': + unittest.main(defaultTest="test_suite") Property changes on: pymoul/trunk/src/moul/file/tests/test_chatlog.py ___________________________________________________________________ Name: svn:eol-style + native Added: pymoul/trunk/src/moul/file/tests/test_kiimage.py =================================================================== --- pymoul/trunk/src/moul/file/tests/test_kiimage.py (rev 0) +++ pymoul/trunk/src/moul/file/tests/test_kiimage.py 2007-01-17 11:28:12 UTC (rev 39) @@ -0,0 +1,35 @@ +# pyMoul - Python interface to Myst Online URU Live +# Copyright (C) 2007 Christian Heimes <christian (at) cheimes (dot) de> + +# 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 +# +"""moul.file.kiimage unit tests +""" +__author__ = "Christian Heimes" +__version__ = "$Id$" +__revision__ = "$Revision$" + +import unittest +from doctest import DocTestSuite + +import moul.file.kiimage + +def test_suite(): + return unittest.TestSuite(( + DocTestSuite('moul.file.kiimage') + )) + +if __name__ == '__main__': + unittest.main(defaultTest="test_suite") Property changes on: pymoul/trunk/src/moul/file/tests/test_kiimage.py ___________________________________________________________________ Name: svn:eol-style + native Added: pymoul/trunk/src/moul/file/tests/test_localization.py =================================================================== --- pymoul/trunk/src/moul/file/tests/test_localization.py (rev 0) +++ pymoul/trunk/src/moul/file/tests/test_localization.py 2007-01-17 11:28:12 UTC (rev 39) @@ -0,0 +1,35 @@ +# pyMoul - Python interface to Myst Online URU Live +# Copyright (C) 2007 Christian Heimes <christian (at) cheimes (dot) de> + +# 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 +# +"""moul.file.localization unit tests +""" +__author__ = "Christian Heimes" +__version__ = "$Id$" +__revision__ = "$Revision$" + +import unittest +from doctest import DocTestSuite + +import moul.file.localization + +def test_suite(): + return unittest.TestSuite(( + DocTestSuite('moul.file.localization') + )) + +if __name__ == '__main__': + unittest.main(defaultTest="test_suite") Property changes on: pymoul/trunk/src/moul/file/tests/test_localization.py ___________________________________________________________________ Name: svn:eol-style + native Added: pymoul/trunk/src/moul/file/tests/test_plasmalog.py =================================================================== --- pymoul/trunk/src/moul/file/tests/test_plasmalog.py (rev 0) +++ pymoul/trunk/src/moul/file/tests/test_plasmalog.py 2007-01-17 11:28:12 UTC (rev 39) @@ -0,0 +1,35 @@ +# pyMoul - Python interface to Myst Online URU Live +# Copyright (C) 2007 Christian Heimes <christian (at) cheimes (dot) de> + +# 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 +# +"""moul.file.plasmalog unit tests +""" +__author__ = "Christian Heimes" +__version__ = "$Id$" +__revision__ = "$Revision$" + +import unittest +from doctest import DocTestSuite + +import moul.file.plasmalog + +def test_suite(): + return unittest.TestSuite(( + DocTestSuite('moul.file.plasmalog') + )) + +if __name__ == '__main__': + unittest.main(defaultTest="test_suite") Property changes on: pymoul/trunk/src/moul/file/tests/test_plasmalog.py ___________________________________________________________________ Name: svn:eol-style + native Added: pymoul/trunk/src/moul/file/tests/test_wdysini.py =================================================================== --- pymoul/trunk/src/moul/file/tests/test_wdysini.py (rev 0) +++ pymoul/trunk/src/moul/file/tests/test_wdysini.py 2007-01-17 11:28:12 UTC (rev 39) @@ -0,0 +1,35 @@ +# pyMoul - Python interface to Myst Online URU Live +# Copyright (C) 2007 Christian Heimes <christian (at) cheimes (dot) de> + +# 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 +# +"""moul.file.wdysini unit tests +""" +__author__ = "Christian Heimes" +__version__ = "$Id$" +__revision__ = "$Revision$" + +import unittest +from doctest import DocTestSuite + +import moul.file.wdysini + +def test_suite(): + return unittest.TestSuite(( + DocTestSuite('moul.file.wdysini') + )) + +if __name__ == '__main__': + unittest.main(defaultTest="test_suite") Property changes on: pymoul/trunk/src/moul/file/tests/test_wdysini.py ___________________________________________________________________ Name: svn:eol-style + native Modified: pymoul/trunk/src/moul/qt/moulqt.py =================================================================== --- pymoul/trunk/src/moul/qt/moulqt.py 2007-01-16 21:39:46 UTC (rev 38) +++ pymoul/trunk/src/moul/qt/moulqt.py 2007-01-17 11:28:12 UTC (rev 39) @@ -27,10 +27,6 @@ from PyQt4 import QtGui from moul.qt.mainwindow import MainWindow -from moul.file import plasmalog -from moul.file import wdysini -from moul.file import kiimage -from moul.time import dni as dnitime def main(*args): app = QtGui.QApplication(*args) Modified: pymoul/trunk/src/moul/qt/ui/mainwindow.py =================================================================== --- pymoul/trunk/src/moul/qt/ui/mainwindow.py 2007-01-16 21:39:46 UTC (rev 38) +++ pymoul/trunk/src/moul/qt/ui/mainwindow.py 2007-01-17 11:28:12 UTC (rev 39) @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'src\moul\qt\ui\mainwindow.ui' # -# Created: Tue Jan 16 22:34:20 2007 +# Created: Wed Jan 17 01:43:35 2007 # by: PyQt4 UI code generator 4.1.1 # # WARNING! All changes made in this file will be lost! Modified: pymoul/trunk/src/moul/tests/test_i18n.py =================================================================== --- pymoul/trunk/src/moul/tests/test_i18n.py 2007-01-16 21:39:46 UTC (rev 38) +++ pymoul/trunk/src/moul/tests/test_i18n.py 2007-01-17 11:28:12 UTC (rev 39) @@ -24,6 +24,8 @@ import unittest from doctest import DocTestSuite +import moul.i18n + def test_suite(): return unittest.TestSuite(( DocTestSuite('moul.i18n'), Modified: pymoul/trunk/src/moul/time/tests/test_cavern.py =================================================================== --- pymoul/trunk/src/moul/time/tests/test_cavern.py 2007-01-16 21:39:46 UTC (rev 38) +++ pymoul/trunk/src/moul/time/tests/test_cavern.py 2007-01-17 11:28:12 UTC (rev 39) @@ -25,6 +25,8 @@ import unittest from doctest import DocTestSuite +import moul.time.cavern + def test_suite(): return unittest.TestSuite(( DocTestSuite('moul.time.cavern'), Added: pymoul/trunk/src/moul/time/tests/test_dni.py =================================================================== --- pymoul/trunk/src/moul/time/tests/test_dni.py (rev 0) +++ pymoul/trunk/src/moul/time/tests/test_dni.py 2007-01-17 11:28:12 UTC (rev 39) @@ -0,0 +1,36 @@ +# pyMoul - Python interface to Myst Online URU Live +# Copyright (C) 2007 Christian Heimes <christian (at) cheimes (dot) de> + +# 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 +# +"""moul.time.dni unit tests +""" +__author__ = "Christian Heimes" +__version__ = "$Id$" +__revision__ = "$Revision$" + +import os +import unittest +from doctest import DocTestSuite + +import moul.time.dni + +def test_suite(): + return unittest.TestSuite(( + DocTestSuite('moul.time.dni'), + )) + +if __name__ == '__main__': + unittest.main(defaultTest="test_suite") Property changes on: pymoul/trunk/src/moul/time/tests/test_dni.py ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |