Skip to content

Commit

Permalink
Merge branch 'add-recap-extraction' of https://github.com/freelawproj…
Browse files Browse the repository at this point in the history
…ect/doctor into add-recap-extraction
  • Loading branch information
flooie committed May 29, 2024
2 parents 0a2cd5e + 1078bb9 commit 098ef99
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions doctor/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,12 +713,12 @@ class TestWhiteSpaceRemoval(unittest.TestCase):
def test_left_shift(self):
"""Can we properly shift our text left?"""
document = """
foo
bar
foo
bar
foo
bar"""
expected_result = """ foo
bar
expected_result = """ foo
bar
foo
bar"""
result = remove_excess_whitespace(document)
Expand All @@ -727,12 +727,12 @@ def test_left_shift(self):
def test_left_shift_when_artifact_exists(self):
"""Shift left once"""
document = """
foo
bar
foo
bar
| foo
bar"""
expected_result = """ foo
bar
expected_result = """ foo
bar
| foo
bar"""
result = remove_excess_whitespace(document)
Expand Down Expand Up @@ -792,28 +792,28 @@ def test_no_floating_pipes_or_artifacts(self):
class TestRECAPCaptionAdjustments(unittest.TestCase):
def test_adjust_caption(self):
"""Test if we can align the caption correctly"""
content = """ 10
LESLIE MASSEY, ) Case No.: 2:16-cv-05001 GJS
)
oe ) PROPOSED} ORDER AWARDING
12 Plaintiff, ) EQUAL ACCESS TO JUSTICE ACT
) ATTORNEY FEES AND EXPENSES
13 VS. ) PURSUANT TO 28 U.S.C. § 2412(d)
NANCY A. BERRYHILL, Acting ) AND COSTS PURSUANT TO 28
14 || Commissioner of Social Security, ) U.S.C. § 1920
15 Defendant )
content = """ 10
LESLIE MASSEY, ) Case No.: 2:16-cv-05001 GJS
)
oe ) PROPOSED} ORDER AWARDING
12 Plaintiff, ) EQUAL ACCESS TO JUSTICE ACT
) ATTORNEY FEES AND EXPENSES
13 VS. ) PURSUANT TO 28 U.S.C. § 2412(d)
NANCY A. BERRYHILL, Acting ) AND COSTS PURSUANT TO 28
14 || Commissioner of Social Security, ) U.S.C. § 1920
15 Defendant )
16 ) """

expected_result = """ 10
LESLIE MASSEY, ) Case No.: 2:16-cv-05001 GJS
)
oe ) PROPOSED} ORDER AWARDING
12 Plaintiff, ) EQUAL ACCESS TO JUSTICE ACT
) ATTORNEY FEES AND EXPENSES
13 VS. ) PURSUANT TO 28 U.S.C. § 2412(d)
NANCY A. BERRYHILL, Acting ) AND COSTS PURSUANT TO 28
14 || Commissioner of Social Security, ) U.S.C. § 1920
15 Defendant )
expected_result = """ 10
LESLIE MASSEY, ) Case No.: 2:16-cv-05001 GJS
)
oe ) PROPOSED} ORDER AWARDING
12 Plaintiff, ) EQUAL ACCESS TO JUSTICE ACT
) ATTORNEY FEES AND EXPENSES
13 VS. ) PURSUANT TO 28 U.S.C. § 2412(d)
NANCY A. BERRYHILL, Acting ) AND COSTS PURSUANT TO 28
14 || Commissioner of Social Security, ) U.S.C. § 1920
15 Defendant )
16 ) """
content = adjust_caption_lines(content)
self.assertEqual(expected_result, content)
Expand Down

0 comments on commit 098ef99

Please sign in to comment.