Get the first rename test passing

This commit is contained in:
Dave Halter
2020-02-10 17:42:23 +01:00
parent 6166e7961e
commit 13b393a5e3
6 changed files with 126 additions and 39 deletions

View File

@@ -3,15 +3,21 @@ Test coverage for renaming is mostly being done by testing
`Script.get_references`.
"""
# --- simple
# ----- simple
def test1():
#? 7 blabla
test1()
AssertionError
return test1, test1.not_existing
# +++
def blabla():
blabla()
AssertionError
return blabla, blabla.not_existing
# +++++
--- /home/dave/source/jedi/test/refactor/rename.py
+++ /home/dave/source/jedi/test/refactor/rename.py
@@ -1,6 +1,6 @@
-def test1():
+def blabla():
#? 7 blabla
- test1()
+ blabla()
AssertionError
- return test1, test1.not_existing
+ return blabla, blabla.not_existing