Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2025-03-27 14:19:10 +0100
committerArthur de Jong <arthur@arthurdejong.org>2025-03-27 14:19:10 +0100
commitae0d86cf0063afa69bc02ecdb930ab2fb5561748 (patch)
treeb11667a8a40e8b4e87ed1e019c375dc4cea1b9e5
parentdcd7fa6f9bc0881d6dcc1f7814cfa6e498166de0 (diff)
Ignore test failures from www.dgii.gov.doHEADmaster
There was a change in the SOAP service and there is a new URL. However, the API has changed and seems to require authentication. We ignore test failures for now but unless a solution is found the DGII validation will be removed. See: https://github.com/arthurdejong/python-stdnum/pull/462 See: https://github.com/arthurdejong/python-stdnum/issues/461
-rw-r--r--tests/test_do_cedula.py8
-rw-r--r--tests/test_do_rnc.py16
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/test_do_cedula.py b/tests/test_do_cedula.py
index b1037c1..4141c30 100644
--- a/tests/test_do_cedula.py
+++ b/tests/test_do_cedula.py
@@ -36,6 +36,14 @@ class TestDGII(unittest.TestCase):
"""Test the web services provided by the the Dirección General de
Impuestos Internos (DGII), the Dominican Republic tax department."""
+ # Theses tests currently fail because the SOAP service at
+ # https://www.dgii.gov.do/wsMovilDGII/WSMovilDGII.asmx?WSDL
+ # is no longer available. There is a new one at
+ # https://www.dgii.gov.do/ventanillaunica/ventanillaunica.asmx?WSDL
+ # but it has a different API and seems to require authentication.
+ # See https://github.com/arthurdejong/python-stdnum/pull/462
+ # and https://github.com/arthurdejong/python-stdnum/issues/461
+ @unittest.expectedFailure
def test_check_dgii(self):
"""Test stdnum.do.cedula.check_dgii()"""
# Test a normal valid number
diff --git a/tests/test_do_rnc.py b/tests/test_do_rnc.py
index 8d93f90..5c1531b 100644
--- a/tests/test_do_rnc.py
+++ b/tests/test_do_rnc.py
@@ -36,6 +36,14 @@ class TestDGII(unittest.TestCase):
"""Test the web services provided by the the Dirección General de
Impuestos Internos (DGII), the Dominican Republic tax department."""
+ # Theses tests currently fail because the SOAP service at
+ # https://www.dgii.gov.do/wsMovilDGII/WSMovilDGII.asmx?WSDL
+ # is no longer available. There is a new one at
+ # https://www.dgii.gov.do/ventanillaunica/ventanillaunica.asmx?WSDL
+ # but it has a different API and seems to require authentication.
+ # See https://github.com/arthurdejong/python-stdnum/pull/462
+ # and https://github.com/arthurdejong/python-stdnum/issues/461
+ @unittest.expectedFailure
def test_check_dgii(self):
"""Test stdnum.do.rnc.check_dgii()"""
# Test a normal valid number
@@ -58,6 +66,14 @@ class TestDGII(unittest.TestCase):
result = rnc.check_dgii('132070801')
self.assertEqual(result['rnc'], '132070801')
+ # Theses tests currently fail because the SOAP service at
+ # https://www.dgii.gov.do/wsMovilDGII/WSMovilDGII.asmx?WSDL
+ # is no longer available. There is a new one at
+ # https://www.dgii.gov.do/ventanillaunica/ventanillaunica.asmx?WSDL
+ # but it has a different API and seems to require authentication.
+ # See https://github.com/arthurdejong/python-stdnum/pull/462
+ # and https://github.com/arthurdejong/python-stdnum/issues/461
+ @unittest.expectedFailure
def test_search_dgii(self):
"""Test stdnum.do.rnc.search_dgii()"""
# Search for some existing companies