Files
tryton/tests/test_purchase.py
T

45 lines
1.1 KiB
Python
Raw Normal View History

2009-06-28 20:20:38 +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.
2012-04-03 20:07:31 +02:00
import sys
import os
2009-06-28 20:20:38 +02:00
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:38 +02:00
from trytond.tests.test_tryton import test_view, test_depends
2009-06-28 20:20:38 +02:00
class PurchaseTestCase(unittest.TestCase):
'''
Test Purchase module.
'''
def setUp(self):
trytond.tests.test_tryton.install_module('purchase')
def test0005views(self):
'''
Test views.
'''
2010-08-27 12:18:24 +02:00
test_view('purchase')
2009-06-28 20:20:38 +02:00
2011-08-04 16:57:38 +02:00
def test0006depends(self):
'''
Test depends.
'''
test_depends()
2012-04-03 20:07:31 +02:00
2009-06-28 20:20:38 +02:00
def suite():
2010-03-04 14:12:21 +01:00
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
PurchaseTestCase))
return suite
2009-06-28 20:20:38 +02:00
if __name__ == '__main__':
2010-03-04 14:12:21 +01:00
unittest.TextTestRunner(verbosity=2).run(suite())