From a633f2f71a24b1ec292a83cc413018291a9bf51e Mon Sep 17 00:00:00 2001 From: William Palin Date: Fri, 17 Nov 2023 15:13:58 -0600 Subject: [PATCH] fix(bia): Update tests to reflect dates Fix BIA dates for tests because dates are approximate --- .../administrative_agency/bia.py | 2 +- .../united_states/bia_example.compare.json | 124 +++++++++--------- 2 files changed, 63 insertions(+), 63 deletions(-) diff --git a/juriscraper/opinions/united_states/administrative_agency/bia.py b/juriscraper/opinions/united_states/administrative_agency/bia.py index 70cc6d9a1..0a3647cef 100644 --- a/juriscraper/opinions/united_states/administrative_agency/bia.py +++ b/juriscraper/opinions/united_states/administrative_agency/bia.py @@ -60,7 +60,7 @@ def get_text(elem): "citation": citation, "url": url[0], "docket": docket, - "date": year.split()[1], + "date": f"{year.split()[1]}-07-01", "date_filed_is_approximate": True, } ) diff --git a/tests/examples/opinions/united_states/bia_example.compare.json b/tests/examples/opinions/united_states/bia_example.compare.json index 89ef6fc5c..3db2f3637 100644 --- a/tests/examples/opinions/united_states/bia_example.compare.json +++ b/tests/examples/opinions/united_states/bia_example.compare.json @@ -1,6 +1,6 @@ [ { - "case_dates": "2023-11-14", + "case_dates": "2023-07-01", "case_names": "POUGATCHEV", "download_urls": "/media/1294871/dl?inline", "precedential_statuses": "Published", @@ -11,7 +11,7 @@ "case_name_shorts": "POUGATCHEV" }, { - "case_dates": "2023-11-14", + "case_dates": "2023-07-01", "case_names": "MORALES-MORALES", "download_urls": "/media/1291361/dl?inline", "precedential_statuses": "Published", @@ -22,7 +22,7 @@ "case_name_shorts": "MORALES-MORALES" }, { - "case_dates": "2023-11-14", + "case_dates": "2023-07-01", "case_names": "J-L-L", "download_urls": "/media/1274021/dl?inline", "precedential_statuses": "Published", @@ -33,7 +33,7 @@ "case_name_shorts": "J-L-L" }, { - "case_dates": "2023-11-14", + "case_dates": "2023-07-01", "case_names": "J-G-R", "download_urls": "/media/1310066/dl?inline", "precedential_statuses": "Published", @@ -44,7 +44,7 @@ "case_name_shorts": "J-G-R" }, { - "case_dates": "2023-11-14", + "case_dates": "2023-07-01", "case_names": "Cabrera-Fernandez", "download_urls": "/d9/2023-10/4066_edit.pdf", "precedential_statuses": "Published", @@ -55,7 +55,7 @@ "case_name_shorts": "Cabrera-Fernandez" }, { - "case_dates": "2023-11-14", + "case_dates": "2023-07-01", "case_names": "CHEN", "download_urls": "/media/1268026/dl?inline", "precedential_statuses": "Published", @@ -66,7 +66,7 @@ "case_name_shorts": "CHEN" }, { - "case_dates": "2023-11-14", + "case_dates": "2023-07-01", "case_names": "C-G-T", "download_urls": "/media/1313551/dl?inline", "precedential_statuses": "Published", @@ -77,7 +77,7 @@ "case_name_shorts": "C-G-T" }, { - "case_dates": "2023-11-14", + "case_dates": "2023-07-01", "case_names": "BRATHWAITE", "download_urls": "/d9/2023-10/4067.pdf", "precedential_statuses": "Published", @@ -88,7 +88,7 @@ "case_name_shorts": "BRATHWAITE" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "V-A-K", "download_urls": "/media/1237871/dl?inline", "precedential_statuses": "Published", @@ -99,7 +99,7 @@ "case_name_shorts": "V-A-K" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "TRIANA", "download_urls": "/media/1262476/dl?inline", "precedential_statuses": "Published", @@ -110,7 +110,7 @@ "case_name_shorts": "TRIANA" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "T-C-A", "download_urls": "/file/1468491/dl", "precedential_statuses": "Published", @@ -121,7 +121,7 @@ "case_name_shorts": "T-C-A" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "S. WONG", "download_urls": "/media/1215406/dl?inline", "precedential_statuses": "Published", @@ -132,7 +132,7 @@ "case_name_shorts": "S. WONG" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "ORTEGA-QUEZADA", "download_urls": "/media/1235491/dl?inline", "precedential_statuses": "Published", @@ -143,7 +143,7 @@ "case_name_shorts": "ORTEGA-QUEZADA" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "NCHIFOR", "download_urls": "/media/1228286/dl?inline", "precedential_statuses": "Published", @@ -154,7 +154,7 @@ "case_name_shorts": "NCHIFOR" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "MARISCAL-HERNANDEZ", "download_urls": "/media/1264136/dl?inline", "precedential_statuses": "Published", @@ -165,7 +165,7 @@ "case_name_shorts": "MARISCAL-HERNANDEZ" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "M-M-A", "download_urls": "/media/1212206/dl?inline", "precedential_statuses": "Published", @@ -176,7 +176,7 @@ "case_name_shorts": "M-M-A" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "LAGUERRE", "download_urls": "/media/1185906/dl?inline", "precedential_statuses": "Published", @@ -187,7 +187,7 @@ "case_name_shorts": "LAGUERRE" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "KOAT", "download_urls": "/media/1187571/dl?inline", "precedential_statuses": "Published", @@ -198,7 +198,7 @@ "case_name_shorts": "KOAT" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "K. GUPTA", "download_urls": "/media/1261526/dl?inline", "precedential_statuses": "Published", @@ -209,7 +209,7 @@ "case_name_shorts": "K. GUPTA" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "GERMAN SANTOS", "download_urls": "/media/1221561/dl?inline", "precedential_statuses": "Published", @@ -220,7 +220,7 @@ "case_name_shorts": "GERMAN SANTOS" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "FERNANDES", "download_urls": "/media/1236376/dl?inline", "precedential_statuses": "Published", @@ -231,7 +231,7 @@ "case_name_shorts": "FERNANDES" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "E-F-N", "download_urls": "/media/1229451/dl?inline", "precedential_statuses": "Published", @@ -242,7 +242,7 @@ "case_name_shorts": "E-F-N" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "DINGUS", "download_urls": "/media/1220101/dl?inline", "precedential_statuses": "Published", @@ -253,7 +253,7 @@ "case_name_shorts": "DINGUS" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "DANG", "download_urls": "/media/1220766/dl?inline", "precedential_statuses": "Published", @@ -264,7 +264,7 @@ "case_name_shorts": "DANG" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "D-L-S", "download_urls": "/media/1226946/dl?inline", "precedential_statuses": "Published", @@ -275,7 +275,7 @@ "case_name_shorts": "D-L-S" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "C. MORGAN", "download_urls": "/media/1213346/dl?inline", "precedential_statuses": "Published", @@ -286,7 +286,7 @@ "case_name_shorts": "C. MORGAN" }, { - "case_dates": "2022-11-14", + "case_dates": "2022-07-01", "case_names": "BADOR", "download_urls": "/media/1250276/dl?inline", "precedential_statuses": "Published", @@ -297,7 +297,7 @@ "case_name_shorts": "BADOR" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "VUCETIC", "download_urls": "/media/1133181/dl?inline", "precedential_statuses": "Published", @@ -308,7 +308,7 @@ "case_name_shorts": "VUCETIC" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "VIERA-GARCIA and ORDONEZ-VIERA", "download_urls": "/media/1118791/dl?inline", "precedential_statuses": "Published", @@ -319,7 +319,7 @@ "case_name_shorts": "VIERA-GARCIA and ORDONEZ-VIERA" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "S-L-H- & L-B-L", "download_urls": "/media/1149036/dl?inline", "precedential_statuses": "Published", @@ -330,7 +330,7 @@ "case_name_shorts": "S-L-H- & L-B-L" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "O-R-E", "download_urls": "/media/1152411/dl?inline", "precedential_statuses": "Published", @@ -341,7 +341,7 @@ "case_name_shorts": "O-R-E" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "O-M-O", "download_urls": "/media/1113751/dl?inline", "precedential_statuses": "Published", @@ -352,7 +352,7 @@ "case_name_shorts": "O-M-O" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "NEMIS", "download_urls": "/media/1128571/dl?inline", "precedential_statuses": "Published", @@ -363,7 +363,7 @@ "case_name_shorts": "NEMIS" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "N-V-G", "download_urls": "/media/1167021/dl?inline", "precedential_statuses": "Published", @@ -374,7 +374,7 @@ "case_name_shorts": "N-V-G" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "MORADEL", "download_urls": "/media/1147346/dl?inline", "precedential_statuses": "Published", @@ -385,7 +385,7 @@ "case_name_shorts": "MORADEL" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "MENSAH", "download_urls": "/media/1136776/dl?inline", "precedential_statuses": "Published", @@ -396,7 +396,7 @@ "case_name_shorts": "MENSAH" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "M-F-O", "download_urls": "/media/1174476/dl?inline", "precedential_statuses": "Published", @@ -407,7 +407,7 @@ "case_name_shorts": "M-F-O" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "L-L-P", "download_urls": "/d9/pages/attachments/2021/02/24/4010.pdf", "precedential_statuses": "Published", @@ -418,7 +418,7 @@ "case_name_shorts": "L-L-P" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "KAGUMBAS", "download_urls": "/media/1171871/dl?inline", "precedential_statuses": "Published", @@ -429,7 +429,7 @@ "case_name_shorts": "KAGUMBAS" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "HERNANDEZ-ROMERO", "download_urls": "/media/1159861/dl?inline", "precedential_statuses": "Published", @@ -440,7 +440,7 @@ "case_name_shorts": "HERNANDEZ-ROMERO" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "H-L-S-A", "download_urls": "/d9/pages/attachments/2021/01/28/4009.pdf", "precedential_statuses": "Published", @@ -451,7 +451,7 @@ "case_name_shorts": "H-L-S-A" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "DIKHTYAR", "download_urls": "/media/1118061/dl?inline", "precedential_statuses": "Published", @@ -462,7 +462,7 @@ "case_name_shorts": "DIKHTYAR" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "D-G-C", "download_urls": "/media/1144786/dl?inline", "precedential_statuses": "Published", @@ -473,7 +473,7 @@ "case_name_shorts": "D-G-C" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "ARAMBULA-BRAVO", "download_urls": "/media/1168541/dl?inline", "precedential_statuses": "Published", @@ -484,7 +484,7 @@ "case_name_shorts": "ARAMBULA-BRAVO" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "AL SABSABI", "download_urls": "/media/1132511/dl?inline", "precedential_statuses": "Published", @@ -495,7 +495,7 @@ "case_name_shorts": "AL SABSABI" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "AGUILAR-MENDEZ", "download_urls": "/media/1129246/dl?inline", "precedential_statuses": "Published", @@ -506,7 +506,7 @@ "case_name_shorts": "AGUILAR-MENDEZ" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "AGUILAR-BARAJAS", "download_urls": "/media/1157241/dl?inline", "precedential_statuses": "Published", @@ -517,7 +517,7 @@ "case_name_shorts": "AGUILAR-BARAJAS" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "A. VALENZUELA", "download_urls": "/media/1176561/dl?inline", "precedential_statuses": "Published", @@ -528,7 +528,7 @@ "case_name_shorts": "A. VALENZUELA" }, { - "case_dates": "2021-11-14", + "case_dates": "2021-07-01", "case_names": "A-S-M", "download_urls": "/media/1135601/dl?inline", "precedential_statuses": "Published", @@ -539,7 +539,7 @@ "case_name_shorts": "A-S-M" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "VOSS", "download_urls": "/media/1098691/dl?inline", "precedential_statuses": "Published", @@ -550,7 +550,7 @@ "case_name_shorts": "VOSS" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "RIVERA-MENDOZA", "download_urls": "/media/1111646/dl?inline", "precedential_statuses": "Published", @@ -561,7 +561,7 @@ "case_name_shorts": "RIVERA-MENDOZA" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "R. I. ORTEGA", "download_urls": "/media/1073546/dl?inline", "precedential_statuses": "Published", @@ -572,7 +572,7 @@ "case_name_shorts": "R. I. ORTEGA" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "PAK", "download_urls": "/media/1102176/dl?inline", "precedential_statuses": "Published", @@ -583,7 +583,7 @@ "case_name_shorts": "PAK" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "PADILLA RODRIGUEZ", "download_urls": "/media/1106051/dl?inline", "precedential_statuses": "Published", @@ -594,7 +594,7 @@ "case_name_shorts": "PADILLA RODRIGUEZ" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "P-B-B", "download_urls": "/d9/2023-11/3991.pdf", "precedential_statuses": "Published", @@ -605,7 +605,7 @@ "case_name_shorts": "P-B-B" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "NIVELO CARDENAS", "download_urls": "/media/1088106/dl?inline", "precedential_statuses": "Published", @@ -616,7 +616,7 @@ "case_name_shorts": "NIVELO CARDENAS" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "MELGAR", "download_urls": "/media/1108716/dl?inline", "precedential_statuses": "Published", @@ -627,7 +627,7 @@ "case_name_shorts": "MELGAR" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "M-D-C-V", "download_urls": "/media/1077366/dl?inline", "precedential_statuses": "Published", @@ -638,7 +638,7 @@ "case_name_shorts": "M-D-C-V" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "M-A-M-Z", "download_urls": "/media/1111256/dl?inline", "precedential_statuses": "Published", @@ -649,7 +649,7 @@ "case_name_shorts": "M-A-M-Z" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "J-G-T", "download_urls": "/media/1093711/dl?inline", "precedential_statuses": "Published", @@ -660,7 +660,7 @@ "case_name_shorts": "J-G-T" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "H-Y-Z", "download_urls": "/media/1104461/dl?inline", "precedential_statuses": "Published", @@ -671,7 +671,7 @@ "case_name_shorts": "H-Y-Z" }, { - "case_dates": "2020-11-14", + "case_dates": "2020-07-01", "case_names": "F-S-N", "download_urls": "/media/1072056/dl?inline", "precedential_statuses": "Published",