PY-30827 PyRenameElementQuickFix changed to avoid special handling of unit test cases

Test data and PyQuickFixTest are updated accordingly. Test for renaming in language injection added.
This commit is contained in:
Anton Bragin
2018-07-13 10:46:32 +03:00
parent 84994a13da
commit 2b5e738a5a
19 changed files with 146 additions and 40 deletions
@@ -1,6 +1,6 @@
def a(x):
def A_NEW_NAME(x):
return x
def f():
return a('foo')
return A_NEW_NAME('foo')
@@ -1,3 +1,3 @@
def f(name):
a = open(name, 'rb')
return a.read()
A_NEW_NAME = open(name, 'rb')
return A_NEW_NAME.read()