@@ -67,7 +67,7 @@ def test_invalid_base_raises_error(self):
67
67
"""
68
68
base = "1234567890"
69
69
with pytest .raises (RutInvalidoError ):
70
- RutDigitoVerificador (base )
70
+ RutDigitoVerificador (base )
71
71
72
72
73
73
class TestRutBase :
@@ -168,7 +168,7 @@ def test_base_with_mixed_chars_raises_error(self):
168
168
base = "12.3a4.678"
169
169
with pytest .raises (RutInvalidoError ):
170
170
RutBase (base )
171
-
171
+
172
172
def test_empty_base_string_raises_error (self ):
173
173
"""
174
174
Test that a RutInvalidoError is raised when the base string is empty.
@@ -342,6 +342,7 @@ def test_invalid_rut_string_with_invalid_base(self):
342
342
with pytest .raises (RutInvalidoError ):
343
343
Rut ("123456789" )
344
344
345
+ # pylint: disable=C0301
345
346
def test_format_rut_csv (self ):
346
347
"""
347
348
Test that the formatear_lista_ruts() method correctly formats a list of RUT strings
@@ -352,6 +353,7 @@ def test_format_rut_csv(self):
352
353
result = Rut .formatear_lista_ruts (ruts , formato = "csv" )
353
354
assert result == expected_output
354
355
356
+ # pylint: disable=C0301
355
357
def test_format_rut_xml (self ):
356
358
"""
357
359
Test that the formatear_lista_ruts() method correctly formats a list of RUT strings
@@ -362,6 +364,7 @@ def test_format_rut_xml(self):
362
364
result = Rut .formatear_lista_ruts (ruts , formato = "xml" )
363
365
assert result == expected_output
364
366
367
+ # pylint: disable=C0301
365
368
def test_format_rut_json (self ):
366
369
"""
367
370
Test that the formatear_lista_ruts() method correctly formats a list of RUT strings
@@ -371,4 +374,3 @@ def test_format_rut_json(self):
371
374
expected_output = 'RUTs válidos:\n [{"rut": "12345678-5"}, {"rut": "98765432-5"}, {"rut": "11111111-1"}]\n \n '
372
375
result = Rut .formatear_lista_ruts (ruts , formato = "json" )
373
376
assert result == expected_output .replace ('"' , "'" )
374
-
0 commit comments