mirror of
https://github.com/illian64/llm-translate.git
synced 2026-04-28 11:49:54 +00:00
* book translate * files processing * files processing * files processing * files processing --------- Co-authored-by: APodoinikov <APodoynikov@detmir.ru>
9 lines
301 B
Python
9 lines
301 B
Python
from unittest import TestCase
|
|
|
|
from app import file_processor
|
|
|
|
|
|
class FileProcessTest(TestCase):
|
|
def test_encoding(self):
|
|
content = file_processor.read_file_with_fix_encoding("../files/test_encoding_ansi.txt")
|
|
self.assertEqual("Hello, World. Привет, Мир. Ёё.", content)
|