From 1078bb9b803c663f951198cc5c291a316f2bc183 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 19:23:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doctor/tests.py | 56 ++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/doctor/tests.py b/doctor/tests.py index 0893004..0b605f8 100644 --- a/doctor/tests.py +++ b/doctor/tests.py @@ -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) @@ -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) @@ -790,28 +790,28 @@ def test_no_floating_pipes_or_artifacts(self): 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)