LEFT | RIGHT |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 #This file is part of Tryton. The COPYRIGHT file at the top level of | 2 #This file is part of Tryton. The COPYRIGHT file at the top level of |
3 #this repository contains the full copyright notices and license terms. | 3 #this repository contains the full copyright notices and license terms. |
4 from __future__ import with_statement | 4 from __future__ import with_statement |
5 import sys, os | 5 import sys, os |
6 DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, | 6 DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, |
7 '..', '..', '..', '..', '..', 'trytond'))) | 7 '..', '..', '..', '..', '..', 'trytond'))) |
8 if os.path.isdir(DIR): | 8 if os.path.isdir(DIR): |
9 sys.path.insert(0, os.path.dirname(DIR)) | 9 sys.path.insert(0, os.path.dirname(DIR)) |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 def suite(): | 44 def suite(): |
45 suite = trytond.tests.test_tryton.suite() | 45 suite = trytond.tests.test_tryton.suite() |
46 suite.addTests(unittest.TestLoader().loadTestsFromTestCase( | 46 suite.addTests(unittest.TestLoader().loadTestsFromTestCase( |
47 SaleShipmentCostTestCase)) | 47 SaleShipmentCostTestCase)) |
48 suite.addTests(doctest.DocFileSuite('scenario_sale_shipment_cost.rst', | 48 suite.addTests(doctest.DocFileSuite('scenario_sale_shipment_cost.rst', |
49 setUp=doctest_dropdb, tearDown=doctest_dropdb, encoding='utf-8')) | 49 setUp=doctest_dropdb, tearDown=doctest_dropdb, encoding='utf-8')) |
50 return suite | 50 return suite |
51 | 51 |
52 if __name__ == '__main__': | 52 if __name__ == '__main__': |
53 unittest.TextTestRunner(verbosity=2).run(suite()) | 53 unittest.TextTestRunner(verbosity=2).run(suite()) |
LEFT | RIGHT |