Files
tryton/tests/test_project.py
T

42 lines
1.1 KiB
Python
Raw Normal View History

2009-06-28 15:12:56 +02:00
#!/usr/bin/env python
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
import sys, os
DIR = os.path.abspath(os.path.normpath(os.path.join(__file__,
'..', '..', '..', '..', '..', 'trytond')))
if os.path.isdir(DIR):
sys.path.insert(0, os.path.dirname(DIR))
import unittest
import trytond.tests.test_tryton
2011-08-04 16:57:36 +02:00
from trytond.tests.test_tryton import test_view, test_depends
2009-06-28 15:12:56 +02:00
class ProjectTestCase(unittest.TestCase):
'''
Test Project module.
'''
def setUp(self):
trytond.tests.test_tryton.install_module('project')
def test0005views(self):
'''
Test views.
'''
2010-08-27 12:18:22 +02:00
test_view('project')
2009-06-28 15:12:56 +02:00
2011-08-04 16:57:36 +02:00
def test0006depends(self):
'''
Test depends.
'''
test_depends()
2009-06-28 15:12:56 +02:00
def suite():
2010-03-04 14:11:46 +01:00
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(ProjectTestCase))
return suite
2009-06-28 15:12:56 +02:00
if __name__ == '__main__':
2010-03-04 14:11:46 +01:00
unittest.TextTestRunner(verbosity=2).run(suite())