@@ -170,8 +170,8 @@ Generate aeat reports::
|
||||
>>> with file_open('account_es/tests/111.txt') as f:
|
||||
... content == f.read()
|
||||
True
|
||||
>>> name.startswith('AEAT Model 111')
|
||||
True
|
||||
>>> name
|
||||
'AEAT Model 111-2018-01'
|
||||
|
||||
>>> aeat = Wizard('account.reporting.aeat')
|
||||
>>> aeat.form.report = '115'
|
||||
@@ -184,8 +184,8 @@ Generate aeat reports::
|
||||
>>> with file_open('account_es/tests/115.txt') as f:
|
||||
... content == f.read()
|
||||
True
|
||||
>>> name.startswith('AEAT Model 115')
|
||||
True
|
||||
>>> name
|
||||
'AEAT Model 115-2018-01'
|
||||
|
||||
>>> aeat = Wizard('account.reporting.aeat')
|
||||
>>> aeat.form.report = '303'
|
||||
@@ -197,8 +197,8 @@ Generate aeat reports::
|
||||
>>> with file_open('account_es/tests/303.txt') as f:
|
||||
... content == f.read()
|
||||
True
|
||||
>>> name.startswith('AEAT Model 303')
|
||||
True
|
||||
>>> name
|
||||
'AEAT Model 303-2018-01'
|
||||
|
||||
>>> VatList = Model.get('account.reporting.vat_list_es')
|
||||
>>> context = {
|
||||
@@ -214,8 +214,8 @@ Generate aeat reports::
|
||||
>>> with file_open('account_es/tests/347.txt') as f:
|
||||
... content == f.read()
|
||||
True
|
||||
>>> name.startswith('AEAT Model 347')
|
||||
True
|
||||
>>> name
|
||||
'AEAT Model 347-...'
|
||||
|
||||
>>> ECOperationList = Model.get('account.reporting.es_ec_operation_list')
|
||||
>>> context = {
|
||||
@@ -232,8 +232,8 @@ Generate aeat reports::
|
||||
>>> with file_open('account_es/tests/349.txt') as f:
|
||||
... content == f.read()
|
||||
True
|
||||
>>> name.startswith('AEAT Model 349')
|
||||
True
|
||||
>>> name
|
||||
'AEAT Model 349-...'
|
||||
|
||||
|
||||
Only one tax of intracomunitary invoices is included on VAT Book::
|
||||
|
||||
@@ -133,5 +133,5 @@ Generate aeat 303 report::
|
||||
>>> with file_open('account_es/tests/303_compensate.txt') as f:
|
||||
... content == f.read()
|
||||
True
|
||||
>>> name.startswith('AEAT Model 303')
|
||||
True
|
||||
>>> name
|
||||
'AEAT Model 303-2018-02'
|
||||
|
||||
@@ -137,7 +137,7 @@ Generate VAT Book::
|
||||
>>> with file_open('account_es/tests/vat_book.csv', 'rb') as f:
|
||||
... content == f.read()
|
||||
True
|
||||
>>> name.startswith('VAT Book')
|
||||
True
|
||||
>>> name
|
||||
'VAT Book-...'
|
||||
>>> extension
|
||||
'csv'
|
||||
|
||||
@@ -219,8 +219,8 @@ Make payment with customer::
|
||||
>>> payment.save()
|
||||
>>> _, source = Payment.get_stripe_customer_sources(payment.id, config.context)
|
||||
>>> source_id, source_name = source
|
||||
>>> source_name == 'Visa ****1881 12/%s' % (today.year + 1)
|
||||
True
|
||||
>>> source_name
|
||||
'Visa ****1881 12/...'
|
||||
>>> payment.stripe_customer_source = source_id
|
||||
>>> payment.click('submit')
|
||||
>>> payment.state
|
||||
|
||||
@@ -221,7 +221,7 @@ Create the packs and ship the shipment::
|
||||
'application/pdf'
|
||||
>>> pack.shipping_reference is not None
|
||||
True
|
||||
>>> pack.shipping_tracking_url.startswith('https://tracking.dpd.de/status/')
|
||||
True
|
||||
>>> pack.shipping_tracking_url
|
||||
'https://tracking.dpd.de/status/...'
|
||||
>>> pack.shipping_tracking_url.endswith(pack.shipping_reference)
|
||||
True
|
||||
|
||||
+2
-2
@@ -223,8 +223,8 @@ Create the packages and ship the shipment::
|
||||
'application/pdf'
|
||||
>>> pack.shipping_reference is not None
|
||||
True
|
||||
>>> pack.shipping_tracking_url.startswith('http')
|
||||
True
|
||||
>>> pack.shipping_tracking_url
|
||||
'http...'
|
||||
|
||||
Clean up::
|
||||
|
||||
|
||||
@@ -227,8 +227,8 @@ Create the packs and ship the shipment::
|
||||
'image/gif'
|
||||
>>> pack.shipping_reference is not None
|
||||
True
|
||||
>>> pack.shipping_tracking_url.startswith('https://www.ups.com/track?')
|
||||
True
|
||||
>>> pack.shipping_tracking_url
|
||||
'https://www.ups.com/track?...'
|
||||
>>> pack.shipping_reference in pack.shipping_tracking_url
|
||||
True
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
* Set ELLIPSIS option flag on doctest
|
||||
* Set IGNORE_EXCEPTION_DETAIL option flag on doctest
|
||||
* Add timeout parameter on RPC definitions
|
||||
|
||||
|
||||
@@ -1126,7 +1126,7 @@ def load_doc_tests(name, path, loader, tests, pattern):
|
||||
tearDown=doctest_teardown, encoding='utf-8',
|
||||
checker=doctest_checker,
|
||||
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
|
||||
| doctest.IGNORE_EXCEPTION_DETAIL))
|
||||
| doctest.ELLIPSIS | doctest.IGNORE_EXCEPTION_DETAIL))
|
||||
finally:
|
||||
os.chdir(cwd)
|
||||
return tests
|
||||
|
||||
Reference in New Issue
Block a user