Added nose for testing, added test_action.py.
git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/trunk@1277 a8418922-720d-0410-834f-a69b97ada669
This commit is contained in:
parent
4a4a0970fc
commit
f533a92b0b
12
gaphor/tests/test_action.py
Normal file
12
gaphor/tests/test_action.py
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
import doctest
|
||||
from gaphor import action
|
||||
|
||||
def test_suite():
|
||||
return doctest.DocTestSuite(action)
|
||||
|
||||
if __name__ == '__main__':
|
||||
import unittest
|
||||
unittest.main(defaultTest='test_suite')
|
||||
|
||||
# vim:sw=4:et:ai
|
13
setup.py
13
setup.py
@ -90,15 +90,23 @@ setup(
|
||||
'mainwindow = gaphor.ui.mainwindow:MainWindow',
|
||||
'consolewindow = gaphor.ui.consolewindow:ConsoleWindow',
|
||||
],
|
||||
'distutils.commands': [
|
||||
'nosetests = nose.commands:nosetests',
|
||||
],
|
||||
},
|
||||
|
||||
cmdclass = {
|
||||
'build_uml': build_uml,
|
||||
'build_mo': build_mo,
|
||||
'build_pot': build_pot,
|
||||
'install_lib': install_lib,
|
||||
'install_lib': install_lib,
|
||||
'run': run,
|
||||
},
|
||||
|
||||
setup_requires = 'nose >= 0.9.2',
|
||||
|
||||
test_suite = 'nose.collector',
|
||||
|
||||
options = dict(
|
||||
py2app = dict(
|
||||
includes=['atk', 'pango', 'cairo', 'pangocairo'],
|
||||
@ -113,4 +121,5 @@ setup(
|
||||
),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
# vim:se=4:et:ai
|
||||
|
Loading…
x
Reference in New Issue
Block a user