Skip to content

Commit acea555

Browse files
committed
d updated markdown snippets
1 parent 19533b6 commit acea555

4 files changed

Lines changed: 21 additions & 14 deletions

File tree

approval_utilities/utilities/multiline_string_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from approval_utilities.utilities.logger.simple_logger import SimpleLogger
44

5+
56
def remove_indentation_from(text: str) -> str:
67
SimpleLogger.variable("text", text)
78
if not text:

docs/reference/options.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<!-- toc -->
44
## Contents
55

6-
* [Configuriation for verify](#configuriation-for-verify)<!-- endToc -->
6+
* [Configuriation for verify](#configuriation-for-verify)
7+
* [Inline Approvals](#inline-approvals)
8+
* [Known Issues](#known-issues)<!-- endToc -->
79

810
## Configuriation for verify
911
All verify methods take an optional options parameter. This allows you to configure

tests/test_inline_approvals.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -167,27 +167,31 @@ def get_preceding_whitespace():
167167

168168
def test_preceding_whitespace():
169169
"""
170-
4 whitespaces
170+
4 whitespaces
171171
"""
172172
verify(get_preceding_whitespace(), options=Options().inline(show_code=True))
173173

174-
def test_trailing_whitespace():
174+
175+
def test_trailing_whitespace():
175176
"""
176-
4 trailing whitespaces
177+
4 trailing whitespaces
177178
"""
178179
# Note: Pycharm will remove the trailing whitespaces, to disable this go to:
179180
# File -> Settings -> Editor -> General -> On Save -> [ ] Remove trailing spaces
180181
verify("4 trailing whitespaces ", options=Options().inline(show_code=False))
181-
182+
183+
182184
# 2. [ ] fix inline bug with blank lines <- from todo list
183-
def test_bug_blank_lines():
185+
def test_bug_blank_lines():
184186
"""
185-
186-
187+
188+
187189
test bug with blank lines
188-
189-
190-
191-
"""
192-
verify("\n\ntest bug with blank lines\n\n\n\n", options=Options().inline(show_code=True))
193190
191+
192+
193+
"""
194+
verify(
195+
"\n\ntest bug with blank lines\n\n\n\n",
196+
options=Options().inline(show_code=True),
197+
)

tests/test_multiline_string_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def test_trailing_whitespace():
3232
input = """
3333
4 trailing whitespaces
3434
"""
35-
assert "4 trailing whitespaces \n" == remove_indentation_from(input)
35+
assert "4 trailing whitespaces \n" == remove_indentation_from(input)

0 commit comments

Comments
 (0)