From b4a1c44702f15c4dffe702cc3ffd18e4f3afe948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 20 Sep 2012 16:18:14 +0200 Subject: [PATCH] Don't modify uom object from the pool in unittest (transplanted from a844b23b6c90b9d80423e95b4e61914059ec1469) --- tests/test_stock_supply_day.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_stock_supply_day.py b/tests/test_stock_supply_day.py index 06015a1255..aa3cf7608f 100644 --- a/tests/test_stock_supply_day.py +++ b/tests/test_stock_supply_day.py @@ -26,7 +26,7 @@ class StockSupplyDayTestCase(unittest.TestCase): def setUp(self): trytond.tests.test_tryton.install_module('stock_supply_day') self.uom = POOL.get('product.uom') - self.uom.category = POOL.get('product.uom.category') + self.uom_category = POOL.get('product.uom.category') self.category = POOL.get('product.category') self.product = POOL.get('product.product') self.company = POOL.get('company.company') @@ -113,7 +113,7 @@ class StockSupplyDayTestCase(unittest.TestCase): :param weekday: supply day of the week (0 - 6) :return: the id of the Product Supplier Day ''' - uom_category_id = self.uom.category.create({'name': 'Test'}) + uom_category_id = self.uom_category.create({'name': 'Test'}) uom_id = self.uom.create({ 'name': 'Test', 'symbol': 'T',