From 73bedef7b747f5e76b668b0ef85dd44c34954b9c Mon Sep 17 00:00:00 2001 From: Francois Huet Date: Sat, 4 Apr 2020 12:38:45 -0700 Subject: [PATCH] Fix expectations for two tables unit test Removed extraneous header and footer expectations. Fixed a minor space discrepancy that's unconsequential. TODO: the expectation of the test is still wrong. It shouldn't include the heading paragraph. --- tests/data.py | 44 ++------------------------------------------ 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/tests/data.py b/tests/data.py index 61dd913..a4f6285 100755 --- a/tests/data.py +++ b/tests/data.py @@ -819,18 +819,6 @@ data_stream_table_rotated = [ ] data_stream_two_tables_1 = [ - [ - "[In thousands (11,062.6 represents 11,062,600) For year ending December 31. Based on Uniform Crime Reporting (UCR)", - "", - "", - "", - "", - "", - "", - "", - "", - "", - ], [ "Program. Represents arrests reported (not charged) by 12,910 agencies with a total population of 247,526,916 as estimated", "", @@ -905,7 +893,7 @@ data_stream_two_tables_1 = [ "2,330 .9", ], [ - "Violent crime . . . . . . . .\n . .\n . .\n . .\n . .\n . .", + "Violent crime . . . . . . . .\n . .\n . .\n . .\n . .\n . .", "467 .9", "69 .1", "398 .8", @@ -1290,29 +1278,9 @@ data_stream_two_tables_1 = [ "", "", ], - [ - "", - "Source: U.S. Department of Justice, Federal Bureau of Investigation, Uniform Crime Reports, Arrests Master Files.", - "", - "", - "", - "", - "", - "", - "", - "", - ], ] data_stream_two_tables_2 = [ - [ - "", - "Source: U.S. Department of Justice, Federal Bureau of Investigation, Uniform Crime Reports, Arrests Master Files.", - "", - "", - "", - "", - ], ["Table 325. Arrests by Race: 2009", "", "", "", "", ""], [ "[Based on Uniform Crime Reporting (UCR) Program. Represents arrests reported (not charged) by 12,371 agencies", @@ -1342,7 +1310,7 @@ data_stream_two_tables_2 = [ "123,656", ], [ - "Violent crime . . . . . . . .\n . .\n . .\n . .\n . .\n .\n .\n . .\n . .\n .\n .\n .\n .\n . .", + "Violent crime . . . . . . . .\n . .\n . .\n . .\n . .\n .\n .\n . .\n . .\n .\n .\n .\n .\n . .", "456,965", "268,346", "177,766", @@ -1590,14 +1558,6 @@ data_stream_two_tables_2 = [ "3,950", ], ["1 Except forcible rape and prostitution.", "", "", "", "", ""], - [ - "", - "Source: U.S. Department of Justice, Federal Bureau of Investigation, “Crime in the United States, Arrests,” September 2010,", - "", - "", - "", - "", - ], ] data_stream_table_areas = [