File tree Expand file tree Collapse file tree
approval_utilities/utilities Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from approval_utilities .utilities .logger .simple_logger import SimpleLogger
44
5+
56def remove_indentation_from (text : str ) -> str :
67 SimpleLogger .variable ("text" , text )
78 if not text :
Original file line number Diff line number Diff line change 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
911All verify methods take an optional options parameter. This allows you to configure
Original file line number Diff line number Diff line change @@ -167,27 +167,31 @@ def get_preceding_whitespace():
167167
168168def 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 \n test bug with blank lines\n \n \n \n " , options = Options ().inline (show_code = True ))
193190
191+
192+
193+ """
194+ verify (
195+ "\n \n test bug with blank lines\n \n \n \n " ,
196+ options = Options ().inline (show_code = True ),
197+ )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments