[POS-commit] r7073 - stoqlib/trunk/stoqlib/lib/test
fabio morbec
fabio at async.com.br
Thu Aug 2 18:25:18 BRT 2007
Author: fabio
Date: Thu Aug 2 18:25:18 2007
New Revision: 7073
Modified:
stoqlib/trunk/stoqlib/lib/test/sintegra-receival-expected.txt
stoqlib/trunk/stoqlib/lib/test/test_sintegragenerator.py
Log:
Atualizando testes. r=jdahlin
Modified: stoqlib/trunk/stoqlib/lib/test/sintegra-receival-expected.txt
==============================================================================
--- stoqlib/trunk/stoqlib/lib/test/sintegra-receival-expected.txt (original)
+++ stoqlib/trunk/stoqlib/lib/test/sintegra-receival-expected.txt Thu Aug 2 18:25:18 2007
@@ -1,5 +1,5 @@
1003852995000107110042490114 Async Open Source Sao Carlos SP00350153942007060120070630331
-11Orlando Damiano 02212 Jd Macarengo 13560450Async Open Source 000033760125
+11Orlando Damiano 02212 Jd Macarengo 13560450SalesPerson 000033760125
5090117749765480110042490114 20070601SP011 0002221102T000000010069400000001006940000000006041000000000000000000000018000600N
5090117749765480110042490114 20070601SP011 0002221102T000000010069400000001006940000000018124000000000000000000000018001800N
5490117749765480011 000222110200000100000000009999000000080000000001000000000000005000000001006940000000000000000000000001800
Modified: stoqlib/trunk/stoqlib/lib/test/test_sintegragenerator.py
==============================================================================
--- stoqlib/trunk/stoqlib/lib/test/test_sintegragenerator.py (original)
+++ stoqlib/trunk/stoqlib/lib/test/test_sintegragenerator.py Thu Aug 2 18:25:18 2007
@@ -2,6 +2,8 @@
from stoqdrivers.enum import TaxType
+from stoqlib.database.runtime import get_current_branch
+
from stoqlib.domain.test.domaintest import DomainTest
from stoqlib.domain.sellable import SellableTaxConstant
from stoqlib.lib.sintegragenerator import StoqlibSintegraGenerator
@@ -20,6 +22,9 @@
order.freight_total = 6
order.secure_value = 6
order.expense_value = 12
+ employee = self.create_employee()
+ branch = get_current_branch(self.trans)
+ branch.manager = employee
order.purchase.status = order.purchase.ORDER_PENDING
More information about the POS-commit
mailing list