Skip to content

Commit

Permalink
Fix other encodings with --diff option
Browse files Browse the repository at this point in the history
  • Loading branch information
bhirsz committed Aug 25, 2023
1 parent 3b0440d commit 24277b2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/utest/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,3 +462,19 @@ def test_skip_options(self, tmp_path):
if option in with_values:
option_names.append("empty")
run_tidy([*option_names, str(tmp_path)])

def test_diff_with_extra_encoding(self):
input_file = (
"*** Test Cases ***\n"
"Robotidy Normalizer test\n"
"[Documentation] Random piece of code that will break because of 'special' characters:\n"
" ... Log 'Хокей'\n"
" Log Хокей\n"
)
run_tidy(
[
"--diff",
"-",
],
std_in=input_file,
)

0 comments on commit 24277b2

Please sign in to comment.