Skip to content

Commit

Permalink
d updated markdown snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 15, 2023
1 parent 798b013 commit 8f7d059
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions approvaltests/file_approver.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def verify(
approved = namer.get_approved_filename()
received = namer.get_received_filename()

if (FileApprover.is_this_a_multiple_verify(approved) ):
if FileApprover.is_this_a_multiple_verify(approved):
return FileApprover.get_duplicate_verify_error_message(approved)
FileApprover.previous_approved.append(approved)

Expand All @@ -64,7 +64,7 @@ def verify(

@staticmethod
def get_duplicate_verify_error_message(approved):
return remove_indentation_from(
return remove_indentation_from(
f"""
We noticed that you called verify more than once in the same test.
This is the second call to verify:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ def test_allow_multiple_verifies_by_lambda():
def test_single_call_to_verify():
verify("call to verify")


def test_help_message():
verify(FileApprover.get_duplicate_verify_error_message("<approved_file>"))

0 comments on commit 8f7d059

Please sign in to comment.