Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
weibullguy committed Jun 3, 2023
1 parent 9f99e99 commit 927319c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions tests/test_docformatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def test_ignore_already_wrapped_link(
@@ -1,6 +1,7 @@
def foo():
"""Description from issue #150 that was being improperly wrapped.
- The text file can be retrieved via the Chrome plugin `Get
- Cookies.txt <https://chrome.google.com/webstore/detail/get-
- cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid>` while browsing."""
Expand Down Expand Up @@ -512,7 +512,7 @@ def test_end_to_end_no_excessive_whitespace(
assert '''\
@@ -1,10 +1,9 @@
"""Create a wrapper around a WiX install.
- :param tools: ToolCache of available tools.
- :param wix_home: The path of the WiX installation.
- :param bin_install: Is the install a binaries-only install? A full
Expand Down Expand Up @@ -576,7 +576,7 @@ def foo():
+
- My list item
- My list item
-
"""
''' == "\n".join(
Expand Down Expand Up @@ -714,7 +714,7 @@ def test_no_pre_summary_space_using_pyproject(
@@ -1,3 +1,2 @@
class TestFoo():
"""Docstring that should not have a pre-summary space."""
-
-
''' == "\n".join(
run_docformatter.communicate()[0].decode().replace("\r", "").split("\n")[2:]
)
Expand Down Expand Up @@ -817,7 +817,7 @@ def test_no_pre_summary_newline_using_pyproject(
@@ -1,5 +1,6 @@
class TestFoo():
"""Docstring that should not have a pre-summary newline.
- This is a multi-line docstring that should not have a
- newline placed before the summary."""
+ This is a multi-line docstring that should not have a newline placed
Expand Down Expand Up @@ -877,7 +877,7 @@ class TestFoo():
- """Docstring that should have a pre-summary newline.
+ """
+ Docstring that should have a pre-summary newline.
- This is a multi-line docstring that should have a newline
- placed before the summary."""
+ This is a multi-line docstring that should have a newline placed
Expand Down Expand Up @@ -1000,7 +1000,7 @@ class TestFoo():
'''\
class TestFoo():
"""Summary docstring that is followed by a description.
This is the description and it shouldn't have a blank line
inserted after it.
"""
Expand Down Expand Up @@ -1042,9 +1042,10 @@ def test_no_blank_using_pyproject(
@@ -1,6 +1,6 @@
class TestFoo():
"""Summary docstring that is followed by a description.
-
- This is the description and it shouldn\'t have a blank line
- inserted after it.
+
+ This is the description and it shouldn\'t have a blank line inserted
+ after it.
"""
Expand All @@ -1059,7 +1060,7 @@ class TestFoo():
'''\
class TestFoo():
"""Summary docstring that is followed by a description.
This is the description and it should have a blank line
inserted after it.
"""
Expand Down Expand Up @@ -1101,9 +1102,10 @@ def test_blank_using_pyproject(
@@ -1,6 +1,7 @@
class TestFoo():
"""Summary docstring that is followed by a description.
-
- This is the description and it should have a blank line
- inserted after it.
+
+ This is the description and it should have a blank line inserted
+ after it.
+
Expand Down

0 comments on commit 927319c

Please sign in to comment.