trytond-product_oneclick_esale/tests/test_product_oneclick_esale.py

33 lines
944 B
Python
Raw Normal View History

2014-09-29 11:12:57 +02:00
#!/usr/bin/env python
2014-11-07 14:30:11 +01:00
# This file is part of product_oneclick_esale module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
2014-09-29 11:12:57 +02:00
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import test_view, test_depends
class ProductOneClickEsaleTestCase(unittest.TestCase):
2014-11-07 14:30:11 +01:00
'Test Product One Click eSale module'
2014-09-29 11:12:57 +02:00
def setUp(self):
trytond.tests.test_tryton.install_module('product_oneclick_esale')
def test0005views(self):
2014-11-07 14:30:11 +01:00
'Test views'
2014-09-29 11:12:57 +02:00
test_view('product_oneclick_esale')
def test0006depends(self):
2014-11-07 14:30:11 +01:00
'Test depends'
2014-09-29 11:12:57 +02:00
test_depends()
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
ProductOneClickEsaleTestCase))
return suite
if __name__ == '__main__':
unittest.TextTestRunner(verbosity=2).run(suite())