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
|
9
setup.py
9
setup.py
@ -90,6 +90,9 @@ setup(
|
||||
'mainwindow = gaphor.ui.mainwindow:MainWindow',
|
||||
'consolewindow = gaphor.ui.consolewindow:ConsoleWindow',
|
||||
],
|
||||
'distutils.commands': [
|
||||
'nosetests = nose.commands:nosetests',
|
||||
],
|
||||
},
|
||||
|
||||
cmdclass = {
|
||||
@ -99,6 +102,11 @@ setup(
|
||||
'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'],
|
||||
@ -114,3 +122,4 @@ setup(
|
||||
)
|
||||
)
|
||||
|
||||
# vim:se=4:et:ai
|
||||
|
Loading…
x
Reference in New Issue
Block a user