From ae0d86cf0063afa69bc02ecdb930ab2fb5561748 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 27 Mar 2025 14:19:10 +0100 Subject: Ignore test failures from www.dgii.gov.do 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 --- tests/test_do_cedula.py | 8 ++++++++ tests/test_do_rnc.py | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) 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 -- cgit v1.2.3