summaryrefslogtreecommitdiff
path: root/addons/procurement/tests/test_procurement.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-05-02 16:48:11 +0200
committerThibault Delavallée <tde@openerp.com>2016-07-04 16:22:36 +0200
commit71aee8e1663a384f838b35f2320ee3fb44b46665 (patch)
tree3c577461bdb8b7a135a6fa5a1a25c76481d72aaf /addons/procurement/tests/test_procurement.py
parente924881f7c1a6e9e9e3cf6bb3ae946bf477abfcb (diff)
[TESTS] procurement: yml yo new API unit tests
Diffstat (limited to 'addons/procurement/tests/test_procurement.py')
-rw-r--r--addons/procurement/tests/test_procurement.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/addons/procurement/tests/test_procurement.py b/addons/procurement/tests/test_procurement.py
new file mode 100644
index 00000000000..6df2c6eb5e0
--- /dev/null
+++ b/addons/procurement/tests/test_procurement.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+# Author: Leonardo Pistone
+# Copyright 2015 Camptocamp SA
+
+from odoo.addons.procurement.tests.common import TestStockCommon
+
+
+class TestBase(TestStockCommon):
+
+ def test_base(self):
+ procurement = self._create_procurement(
+ self.user_employee,
+ product_id=self.product_1.id,
+ name='Procurement Test',
+ product_qty=15.0)
+ # I check that procurement order is in exception, as at first there isn't any suitable rule
+ self.assertEqual(procurement.state, 'exception')