Skip to content

Commit 7a567d9

Browse files
committed
Pylint compliance
1 parent 60b88c6 commit 7a567d9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/tests.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_invalid_base_raises_error(self):
6767
"""
6868
base = "1234567890"
6969
with pytest.raises(RutInvalidoError):
70-
RutDigitoVerificador(base)
70+
RutDigitoVerificador(base)
7171

7272

7373
class TestRutBase:
@@ -168,7 +168,7 @@ def test_base_with_mixed_chars_raises_error(self):
168168
base = "12.3a4.678"
169169
with pytest.raises(RutInvalidoError):
170170
RutBase(base)
171-
171+
172172
def test_empty_base_string_raises_error(self):
173173
"""
174174
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):
342342
with pytest.raises(RutInvalidoError):
343343
Rut("123456789")
344344

345+
# pylint: disable=C0301
345346
def test_format_rut_csv(self):
346347
"""
347348
Test that the formatear_lista_ruts() method correctly formats a list of RUT strings
@@ -352,6 +353,7 @@ def test_format_rut_csv(self):
352353
result = Rut.formatear_lista_ruts(ruts, formato="csv")
353354
assert result == expected_output
354355

356+
# pylint: disable=C0301
355357
def test_format_rut_xml(self):
356358
"""
357359
Test that the formatear_lista_ruts() method correctly formats a list of RUT strings
@@ -362,6 +364,7 @@ def test_format_rut_xml(self):
362364
result = Rut.formatear_lista_ruts(ruts, formato="xml")
363365
assert result == expected_output
364366

367+
# pylint: disable=C0301
365368
def test_format_rut_json(self):
366369
"""
367370
Test that the formatear_lista_ruts() method correctly formats a list of RUT strings
@@ -371,4 +374,3 @@ def test_format_rut_json(self):
371374
expected_output = 'RUTs válidos:\n[{"rut": "12345678-5"}, {"rut": "98765432-5"}, {"rut": "11111111-1"}]\n\n'
372375
result = Rut.formatear_lista_ruts(ruts, formato="json")
373376
assert result == expected_output.replace('"', "'")
374-

0 commit comments

Comments
 (0)