mirror of
https://github.com/NaN-tic/trytond-stock_delivery_date.git
synced 2023-12-14 02:22:52 +01:00
34 lines
1,001 B
Python
34 lines
1,001 B
Python
#!/usr/bin/env python
|
|
# This file is part stock_delivery_date module for Tryton.
|
|
# 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 POOL, DB_NAME, USER, CONTEXT, test_view,\
|
|
test_depends
|
|
from trytond.transaction import Transaction
|
|
|
|
|
|
class StockDeliveryDateTestCase(unittest.TestCase):
|
|
'Test Stock Delivery Date module'
|
|
|
|
def setUp(self):
|
|
trytond.tests.test_tryton.install_module('stock_delivery_date')
|
|
|
|
def test0005views(self):
|
|
'Test views'
|
|
test_view('stock_delivery_date')
|
|
|
|
def test0006depends(self):
|
|
'Test depends'
|
|
test_depends()
|
|
|
|
|
|
def suite():
|
|
suite = trytond.tests.test_tryton.suite()
|
|
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
|
|
StockDeliveryDateTestCase))
|
|
return suite
|
|
|
|
if __name__ == '__main__':
|
|
unittest.TextTestRunner(verbosity=2).run(suite())
|