From a4921eacc08e08ea9d9ce74692fffaec5240c011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 16 Jan 2014 22:10:57 +0100 Subject: [PATCH] Anonymise tests review2681002 --- tests/scenario_stock_lot_shipment_out.rst | 8 ++++---- tests/test_stock_lot.py | 8 ++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/scenario_stock_lot_shipment_out.rst b/tests/scenario_stock_lot_shipment_out.rst index 8a8b2e2558..a3d1870e46 100644 --- a/tests/scenario_stock_lot_shipment_out.rst +++ b/tests/scenario_stock_lot_shipment_out.rst @@ -35,14 +35,14 @@ Create company:: >>> company_config = Wizard('company.company.config') >>> company_config.execute('company') >>> company = company_config.form - >>> party = Party(name='B2CK') + >>> party = Party(name='Dunder Mifflin') >>> party.save() >>> company.party = party - >>> currencies = Currency.find([('code', '=', 'EUR')]) + >>> currencies = Currency.find([('code', '=', 'USD')]) >>> if not currencies: - ... currency = Currency(name='Euro', symbol=u'€', code='EUR', + ... currency = Currency(name='U.S. Dollar', symbol='$', code='USD', ... rounding=Decimal('0.01'), mon_grouping='[3, 3, 0]', - ... mon_decimal_point=',') + ... mon_decimal_point='.', mon_thousands_sep=',') ... currency.save() ... CurrencyRate(date=today + relativedelta(month=1, day=1), ... rate=Decimal('1.0'), currency=currency).save() diff --git a/tests/test_stock_lot.py b/tests/test_stock_lot.py index 3c076a0104..4c0ecfc604 100644 --- a/tests/test_stock_lot.py +++ b/tests/test_stock_lot.py @@ -55,7 +55,9 @@ class StockLotTestCase(unittest.TestCase): supplier, = self.location.search([('code', '=', 'SUP')]) customer, = self.location.search([('code', '=', 'CUS')]) storage, = self.location.search([('code', '=', 'STO')]) - company, = self.company.search([('rec_name', '=', 'B2CK')]) + company, = self.company.search([ + ('rec_name', '=', 'Dunder Mifflin'), + ]) currency = company.currency self.user.write([self.user(USER)], { 'main_company': company.id, @@ -144,7 +146,9 @@ class StockLotTestCase(unittest.TestCase): }]) supplier, = self.location.search([('code', '=', 'SUP')]) storage, = self.location.search([('code', '=', 'STO')]) - company, = self.company.search([('rec_name', '=', 'B2CK')]) + company, = self.company.search([ + ('rec_name', '=', 'Dunder Mifflin'), + ]) currency = company.currency self.user.write([self.user(USER)], { 'main_company': company.id,