Skip to content

Commit 3c4c7e4

Browse files
committed
. d updated markdown snippets
1 parent 4adaf71 commit 3c4c7e4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

approvaltests/inline/inline_options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def apply(self, options: "Options") -> "Options":
3030
return options.with_reporter(
3131
InlinePythonReporter(
3232
ReporterThatAutomaticallyApproves(),
33-
create_footer_function=lambda __,___: DELETE_ME_TO_APPROVE_,
33+
create_footer_function=lambda __, ___: DELETE_ME_TO_APPROVE_,
3434
)
3535
)
3636

@@ -46,7 +46,7 @@ def create_previous_capture_footer(received_path, approved_path):
4646
approved_text = approved_text.rsplit("\n", 1)[0]
4747
approved_text = approved_text.rsplit(PREVIOUS_RESULT_, 1)[-1]
4848
received_text = Path(received_path).read_text().rsplit("\n", 1)[0]
49-
49+
5050
if received_text != approved_text:
5151
return DELETE_ME_TO_APPROVE_ + "\n" + PREVIOUS_RESULT_ + approved_text
5252
return ""

approvaltests/namer/inline_python_reporter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99

1010
class InlinePythonReporter(Reporter):
1111
def __init__(
12-
self, reporter: Reporter, create_footer_function: Callable[[str, str], str] = None
12+
self,
13+
reporter: Reporter,
14+
create_footer_function: Callable[[str, str], str] = None,
1315
):
1416
self.diffReporter = reporter
15-
self.footer_function = create_footer_function or (lambda __,___: "")
17+
self.footer_function = create_footer_function or (lambda __, ___: "")
1618
self.footer = ""
1719

1820
def report(self, received_path: str, approved_path: str) -> bool:

0 commit comments

Comments
 (0)