We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Rename Rename function in source without a trailing empty line: AssertionError: expected '--- a/without empty line.py\n+++ b/without empty line.py\n@@ -1,8 +1,8 @@\n import os\n \n-def one():\n+def three():\n return True\n \n def two():\n- if one():\n- print("A" + one())\r\n+ if three():\n+ print("A" + three())\r\n' to equal '--- a/without empty line.py\r\n+++ b/without empty line.py\r\n@@ -1,8 +1,8 @@\r\n import os\r\n \r\n-def one():\r\n+def three():\r\n return True\r\n \r\n def two():\r\n- if one():\r\n- print("A" + one())\r\n+ if three():\r\n+ print("A" + three())\r\n' + expected - actual ---- a/without empty line.py -+++ b/without empty line.py -@@ -1,8 +1,8 @@ - import os - --def one(): -+def three(): - return True - - def two(): -- if one(): +--- a/without empty line.py ++++ b/without empty line.py +@@ -1,8 +1,8 @@ + import os + +-def one(): ++def three(): + return True + + def two(): +- if one(): - print("A" + one()) -+ if three(): ++ if three(): + print("A" + three()) at Object.<anonymous> (C:\projects\vscode-python-v3vd6\src\test\refactor\rename.test.ts:58:48) at Generator.next (<anonymous>) at fulfilled (C:\projects\vscode-python-v3vd6\out\test\refactor\rename.test.js:6:58) at <anonymous> 2) Refactor Rename Rename function in source with a trailing empty line: AssertionError: expected '--- a/with empty line.py\n+++ b/with empty line.py\n@@ -1,8 +1,8 @@\n import os\n \n-def one():\n+def three():\n return True\n \n def two():\n- if one():\n- print("A" + one())\n+ if three():\n+ print("A" + three())\n' to equal '--- a/with empty line.py\r\n+++ b/with empty line.py\r\n@@ -1,8 +1,8 @@\r\n import os\r\n \r\n-def one():\r\n+def three():\r\n return True\r\n \r\n def two():\r\n- if one():\r\n- print("A" + one())\r\n+ if three():\r\n+ print("A" + three())\r\n' + expected - actual ---- a/with empty line.py -+++ b/with empty line.py -@@ -1,8 +1,8 @@ - import os - --def one(): -+def three(): - return True - - def two(): -- if one(): -- print("A" + one()) -+ if three(): -+ print("A" + three()) +--- a/with empty line.py ++++ b/with empty line.py +@@ -1,8 +1,8 @@ + import os + +-def one(): ++def three(): + return True + + def two(): +- if one(): +- print("A" + one()) ++ if three(): ++ print("A" + three()) at Object.<anonymous> (C:\projects\vscode-python-v3vd6\src\test\refactor\rename.test.ts:70:48) at Generator.next (<anonymous>) at fulfilled (C:\projects\vscode-python-v3vd6\out\test\refactor\rename.test.js:6:58) at <anonymous>
The text was updated successfully, but these errors were encountered:
Fix rename refactor unit tests (#1955)
3c882b5
Fixes #1953
DonJayamanne
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: