diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2025-03-27 14:19:10 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2025-03-27 14:19:10 +0100 |
commit | ae0d86cf0063afa69bc02ecdb930ab2fb5561748 (patch) | |
tree | b11667a8a40e8b4e87ed1e019c375dc4cea1b9e5 | |
parent | dcd7fa6f9bc0881d6dcc1f7814cfa6e498166de0 (diff) |
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.py | 8 | ||||
-rw-r--r-- | tests/test_do_rnc.py | 16 |
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 |