From 6def5920064230cafd602fa01e8025aea2c596dd Mon Sep 17 00:00:00 2001 From: NiumXp Date: Tue, 20 Feb 2024 17:58:50 -0300 Subject: [PATCH] fix test_errors --- tests/test_errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_errors.py b/tests/test_errors.py index be6636d..6ecce44 100644 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -54,13 +54,13 @@ }, ] ]) -def test_humanized_formatter_errored_file(files, expected_result): +def test_humanized_formatter_errored_file(files: List[File], expected_result: str): registry = Registry() with patch("norminette.rules.check_header.CheckHeader.run") as _: for file in files: lexer = Lexer(file) - context = Context(file, lexer.get_tokens()) + context = Context(file, list(lexer)) registry.run(context) formatter = HumanizedErrorsFormatter(files)