mirror of
https://github.com/NaN-tic/trytond-stock_delivery_date.git
synced 2023-12-14 02:22:52 +01:00
Tests
This commit is contained in:
parent
c02ff04dfc
commit
3bfe2ca1d0
|
@ -1,27 +1,14 @@
|
|||
#!/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.
|
||||
# This file is part of the 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
|
||||
from trytond.tests.test_tryton import ModuleTestCase
|
||||
|
||||
|
||||
class StockDeliveryDateTestCase(unittest.TestCase):
|
||||
class StockDeliveryDateTestCase(ModuleTestCase):
|
||||
'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()
|
||||
module = 'stock_delivery_date'
|
||||
|
||||
|
||||
def suite():
|
||||
|
@ -29,6 +16,3 @@ def suite():
|
|||
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
|
||||
StockDeliveryDateTestCase))
|
||||
return suite
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.TextTestRunner(verbosity=2).run(suite())
|
||||
|
|
Loading…
Reference in a new issue