Skip to content

Commit

Permalink
fix test_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NiumXp committed Feb 20, 2024
1 parent cfc9433 commit 6def592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6def592

Please sign in to comment.