diff --git a/smart_imports/tests/fixtures/python_3_5/full_parser_test.py b/smart_imports/tests/fixtures/python_3_5/full_parser_test.py index 8997df7..4397eb0 100644 --- a/smart_imports/tests/fixtures/python_3_5/full_parser_test.py +++ b/smart_imports/tests/fixtures/python_3_5/full_parser_test.py @@ -86,3 +86,8 @@ def function_4(): await var_57 return function_4 + + +# unicode + +переменная_1 = перменная_2 + var_1 diff --git a/smart_imports/tests/fixtures/python_3_6/full_parser_test.py b/smart_imports/tests/fixtures/python_3_6/full_parser_test.py index 406d16b..f976364 100644 --- a/smart_imports/tests/fixtures/python_3_6/full_parser_test.py +++ b/smart_imports/tests/fixtures/python_3_6/full_parser_test.py @@ -116,3 +116,8 @@ async def fuction_4(): var_66 = [(var_73 + var_74+var_81) async for var_73, var_74 in var_75() if (var_76 + var_74) % 2] var_66 = [await var_77() for var_77, var_78 in var_79 if await var_80(var_78)] + + +# unicode + +переменная_1 = перменная_2 + var_1 diff --git a/smart_imports/tests/fixtures/python_3_7/full_parser_test.py b/smart_imports/tests/fixtures/python_3_7/full_parser_test.py index 406d16b..f976364 100644 --- a/smart_imports/tests/fixtures/python_3_7/full_parser_test.py +++ b/smart_imports/tests/fixtures/python_3_7/full_parser_test.py @@ -116,3 +116,8 @@ async def fuction_4(): var_66 = [(var_73 + var_74+var_81) async for var_73, var_74 in var_75() if (var_76 + var_74) % 2] var_66 = [await var_77() for var_77, var_78 in var_79 if await var_80(var_78)] + + +# unicode + +переменная_1 = перменная_2 + var_1 diff --git a/smart_imports/tests/test_ast_parser.py b/smart_imports/tests/test_ast_parser.py index 4152ea7..5d62e2b 100644 --- a/smart_imports/tests/test_ast_parser.py +++ b/smart_imports/tests/test_ast_parser.py @@ -30,7 +30,8 @@ def test_python_3_5(self): fully_undefined_variables, partialy_undefined_variables, variables_scopes = variables self.assertEqual(fully_undefined_variables, - {'annotation_1', + {'перменная_2', + 'annotation_1', 'annotation_2', 'var_3', 'var_7', @@ -89,7 +90,8 @@ def test_python_3_6(self): fully_undefined_variables, partialy_undefined_variables, variables_scopes = variables self.assertEqual(fully_undefined_variables, - {'annotation_1', + {'перменная_2', + 'annotation_1', 'annotation_2', 'var_3', 'var_7', @@ -160,7 +162,8 @@ def test_python_3_7(self): fully_undefined_variables, partialy_undefined_variables, variables_scopes = variables self.assertEqual(fully_undefined_variables, - {'annotation_1', + {'перменная_2', + 'annotation_1', 'annotation_2', 'var_3', 'var_7',