Tests
This commit is contained in:
parent
76a9db4a1b
commit
e1b30c49c1
|
@ -1,32 +1,18 @@
|
|||
#!/usr/bin/env python
|
||||
# This file is part of the purchase_margin module for Tryton.
|
||||
# The COPYRIGHT file at the top level of this repository contains
|
||||
# the full copyright notices and license terms.
|
||||
# The COPYRIGHT file at the top level of this repository contains the full
|
||||
# copyright notices and license terms.
|
||||
import unittest
|
||||
import trytond.tests.test_tryton
|
||||
from trytond.tests.test_tryton import test_view, test_depends
|
||||
from trytond.tests.test_tryton import ModuleTestCase
|
||||
|
||||
|
||||
class PurchaseMarginTestCase(unittest.TestCase):
|
||||
class PurchaseMarginTestCase(ModuleTestCase):
|
||||
'Test Purchase Margin module'
|
||||
|
||||
def setUp(self):
|
||||
trytond.tests.test_tryton.install_module('purchase_margin')
|
||||
|
||||
def test0005views(self):
|
||||
'Test views'
|
||||
test_view('purchase_margin')
|
||||
|
||||
def test0006depends(self):
|
||||
'Test depends'
|
||||
test_depends()
|
||||
module = 'purchase_margin'
|
||||
|
||||
|
||||
def suite():
|
||||
suite = trytond.tests.test_tryton.suite()
|
||||
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
|
||||
PurchaseDeliveryDateManualTestCase))
|
||||
PurchaseMarginTestCase))
|
||||
return suite
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.TextTestRunner(verbosity=2).run(suite())
|
||||
|
|
Loading…
Reference in New Issue