Revised formatting to work with multiple implicitly concatenated strings
This commit is contained in:
commit
f8f8e544b7
2
AUTHORS
2
AUTHORS
|
@ -180,6 +180,7 @@ Jake VanderPlas
|
||||||
Jakob van Santen
|
Jakob van Santen
|
||||||
Jakub Mitoraj
|
Jakub Mitoraj
|
||||||
James Bourbeau
|
James Bourbeau
|
||||||
|
Jamie Chen
|
||||||
Jan Balster
|
Jan Balster
|
||||||
Janne Vanhala
|
Janne Vanhala
|
||||||
Jason R. Coombs
|
Jason R. Coombs
|
||||||
|
@ -205,6 +206,7 @@ Justice Ndou
|
||||||
Justyna Janczyszyn
|
Justyna Janczyszyn
|
||||||
Kale Kundert
|
Kale Kundert
|
||||||
Kamran Ahmad
|
Kamran Ahmad
|
||||||
|
Kaylin Yeoh
|
||||||
Kenny Y
|
Kenny Y
|
||||||
Karl O. Pinc
|
Karl O. Pinc
|
||||||
Karthikeyan Singaravelan
|
Karthikeyan Singaravelan
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Found source causes multiline string diff error
|
||||||
|
Added private functions to check specific cases
|
||||||
|
Fixed output issue with implicit concatonated strings
|
||||||
|
Added tests in test assertion file in function test_multiline_diff
|
|
@ -395,6 +395,27 @@ class TestAssert_reprcompare:
|
||||||
"- eggs",
|
"- eggs",
|
||||||
"+ spam",
|
"+ spam",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
def test_multiline_diff(self) -> None:
|
||||||
|
m = [
|
||||||
|
"This is some dummy test which shows the strange way in which Pycharm"
|
||||||
|
" displays the full diff."
|
||||||
|
]
|
||||||
|
assert callequal(m, []) == [
|
||||||
|
"['This is som...e full diff.'] == []",
|
||||||
|
"Left contains one more item: 'This is some dummy test which shows the "
|
||||||
|
"strange way in which Pycharm displays the full diff.'",
|
||||||
|
'Use -v to get more diff',
|
||||||
|
]
|
||||||
|
assert callequal(m, [], verbose=True) == [
|
||||||
|
"['This is som...e full diff.'] == []",
|
||||||
|
"Left contains one more item: 'This is some dummy test which shows the "
|
||||||
|
"strange way in which Pycharm displays the full diff.'",
|
||||||
|
"Full diff:",
|
||||||
|
"- []",
|
||||||
|
"+ ['This is some dummy test which shows the strange way in which Pycharm "
|
||||||
|
"displays the full diff.']",
|
||||||
|
]
|
||||||
|
|
||||||
def test_text_skipping(self) -> None:
|
def test_text_skipping(self) -> None:
|
||||||
lines = callequal("a" * 50 + "spam", "a" * 50 + "eggs")
|
lines = callequal("a" * 50 + "spam", "a" * 50 + "eggs")
|
||||||
|
|
Loading…
Reference in New Issue