mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Disable VIES test
This commit is contained in:
committed by
David Vidal
parent
1da7aa3e46
commit
a00b59717a
@@ -36,22 +36,24 @@ class TestResPartner(TransactionCase):
|
||||
self.assertEqual(self.partner.vat, res_vat)
|
||||
self.assertEqual(self.partner.vies_passed, res_vies)
|
||||
|
||||
def test_validate_vat_vies(self):
|
||||
"""
|
||||
Validate VAT when company 'vat_check_vies' option is True
|
||||
All VATs are valid, but some are not signed up in VIES database
|
||||
"""
|
||||
self.company.vat_check_vies = True
|
||||
cases = (
|
||||
# vat => vat, vies_passed
|
||||
# VATs signed up in VIES
|
||||
('ESB84718550', 'ESB84718550', True),
|
||||
('de222070543', 'DE222070543', True),
|
||||
# Valid VATs don't signed up in VIES
|
||||
('DE253130868', 'DE253130868', False),
|
||||
('esB87286357', 'ESB87286357', False),
|
||||
)
|
||||
self._test_validate_vat(cases)
|
||||
# AEA: Can't use this test in Travis, VIES checking returns always False
|
||||
# because of timeout
|
||||
# def test_validate_vat_vies(self):
|
||||
# """
|
||||
# Validate VAT when company 'vat_check_vies' option is True
|
||||
# All VATs are valid, but some are not signed up in VIES database
|
||||
# """
|
||||
# self.company.vat_check_vies = True
|
||||
# cases = (
|
||||
# # vat => vat, vies_passed
|
||||
# # VATs signed up in VIES
|
||||
# ('ESB84718550', 'ESB84718550', True),
|
||||
# ('de222070543', 'DE222070543', True),
|
||||
# # Valid VATs don't signed up in VIES
|
||||
# ('DE253130868', 'DE253130868', False),
|
||||
# ('esB87286357', 'ESB87286357', False),
|
||||
# )
|
||||
# self._test_validate_vat(cases)
|
||||
|
||||
def test_validate_vat_no_vies(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user