From 7e31e060a45184daf19c4e80bdd160dbcbf0757d Mon Sep 17 00:00:00 2001 From: William Palin Date: Fri, 17 Nov 2023 16:28:50 -0600 Subject: [PATCH 1/2] fix(court_ids): Match Court Ids to CL --- juriscraper/opinions/united_states/state/__init__.py | 4 ++-- .../opinions/united_states/state/{njtax_p.py => njtaxct_p.py} | 0 .../opinions/united_states/state/{njtax_u.py => njtaxct_u.py} | 0 juriscraper/opinions/united_states/territories/__init__.py | 2 +- .../united_states/territories/{nmi.py => nmariana.py} | 0 ..._p_example.compare.json => njtaxct_p_example.compare.json} | 0 .../{njtax_p_example.html => njtaxct_p_example.html} | 0 ..._u_example.compare.json => njtaxct_u_example.compare.json} | 0 .../{njtax_u_example.html => njtaxct_u_example.html} | 0 ...nmi_example.compare.json => nmariana_example.compare.json} | 0 .../united_states/{nmi_example.html => nmariana_example.html} | 0 11 files changed, 3 insertions(+), 3 deletions(-) rename juriscraper/opinions/united_states/state/{njtax_p.py => njtaxct_p.py} (100%) rename juriscraper/opinions/united_states/state/{njtax_u.py => njtaxct_u.py} (100%) rename juriscraper/opinions/united_states/territories/{nmi.py => nmariana.py} (100%) rename tests/examples/opinions/united_states/{njtax_p_example.compare.json => njtaxct_p_example.compare.json} (100%) rename tests/examples/opinions/united_states/{njtax_p_example.html => njtaxct_p_example.html} (100%) rename tests/examples/opinions/united_states/{njtax_u_example.compare.json => njtaxct_u_example.compare.json} (100%) rename tests/examples/opinions/united_states/{njtax_u_example.html => njtaxct_u_example.html} (100%) rename tests/examples/opinions/united_states/{nmi_example.compare.json => nmariana_example.compare.json} (100%) rename tests/examples/opinions/united_states/{nmi_example.html => nmariana_example.html} (100%) diff --git a/juriscraper/opinions/united_states/state/__init__.py b/juriscraper/opinions/united_states/state/__init__.py index 0a9229f7f..eaa980e2c 100644 --- a/juriscraper/opinions/united_states/state/__init__.py +++ b/juriscraper/opinions/united_states/state/__init__.py @@ -101,8 +101,8 @@ "nj", "njsuperctappdiv_p", "njsuperctappdiv_u", - "njtax_p", - "njtax_u", + "njtaxct_p", + "njtaxct_u", "njsuperctappdiv_u", "ny", "nyag", diff --git a/juriscraper/opinions/united_states/state/njtax_p.py b/juriscraper/opinions/united_states/state/njtaxct_p.py similarity index 100% rename from juriscraper/opinions/united_states/state/njtax_p.py rename to juriscraper/opinions/united_states/state/njtaxct_p.py diff --git a/juriscraper/opinions/united_states/state/njtax_u.py b/juriscraper/opinions/united_states/state/njtaxct_u.py similarity index 100% rename from juriscraper/opinions/united_states/state/njtax_u.py rename to juriscraper/opinions/united_states/state/njtaxct_u.py diff --git a/juriscraper/opinions/united_states/territories/__init__.py b/juriscraper/opinions/united_states/territories/__init__.py index 041b72712..9afc35242 100644 --- a/juriscraper/opinions/united_states/territories/__init__.py +++ b/juriscraper/opinions/united_states/territories/__init__.py @@ -1,6 +1,6 @@ __all__ = [ "guam", - "nmi", + "nmariana", "pr", "prapp", "virginislands", diff --git a/juriscraper/opinions/united_states/territories/nmi.py b/juriscraper/opinions/united_states/territories/nmariana.py similarity index 100% rename from juriscraper/opinions/united_states/territories/nmi.py rename to juriscraper/opinions/united_states/territories/nmariana.py diff --git a/tests/examples/opinions/united_states/njtax_p_example.compare.json b/tests/examples/opinions/united_states/njtaxct_p_example.compare.json similarity index 100% rename from tests/examples/opinions/united_states/njtax_p_example.compare.json rename to tests/examples/opinions/united_states/njtaxct_p_example.compare.json diff --git a/tests/examples/opinions/united_states/njtax_p_example.html b/tests/examples/opinions/united_states/njtaxct_p_example.html similarity index 100% rename from tests/examples/opinions/united_states/njtax_p_example.html rename to tests/examples/opinions/united_states/njtaxct_p_example.html diff --git a/tests/examples/opinions/united_states/njtax_u_example.compare.json b/tests/examples/opinions/united_states/njtaxct_u_example.compare.json similarity index 100% rename from tests/examples/opinions/united_states/njtax_u_example.compare.json rename to tests/examples/opinions/united_states/njtaxct_u_example.compare.json diff --git a/tests/examples/opinions/united_states/njtax_u_example.html b/tests/examples/opinions/united_states/njtaxct_u_example.html similarity index 100% rename from tests/examples/opinions/united_states/njtax_u_example.html rename to tests/examples/opinions/united_states/njtaxct_u_example.html diff --git a/tests/examples/opinions/united_states/nmi_example.compare.json b/tests/examples/opinions/united_states/nmariana_example.compare.json similarity index 100% rename from tests/examples/opinions/united_states/nmi_example.compare.json rename to tests/examples/opinions/united_states/nmariana_example.compare.json diff --git a/tests/examples/opinions/united_states/nmi_example.html b/tests/examples/opinions/united_states/nmariana_example.html similarity index 100% rename from tests/examples/opinions/united_states/nmi_example.html rename to tests/examples/opinions/united_states/nmariana_example.html From 489704d4c042e40200426b961e8170f251682c72 Mon Sep 17 00:00:00 2001 From: William Palin Date: Fri, 17 Nov 2023 16:32:35 -0600 Subject: [PATCH 2/2] test(extracttext): Update module to match test --- tests/local/test_ScraperExtractFromTextTest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/local/test_ScraperExtractFromTextTest.py b/tests/local/test_ScraperExtractFromTextTest.py index 05f13c105..e869283f0 100644 --- a/tests/local/test_ScraperExtractFromTextTest.py +++ b/tests/local/test_ScraperExtractFromTextTest.py @@ -97,7 +97,7 @@ class ScraperExtractFromText(unittest.TestCase): {"Docket": {"docket_number": "#30018-a-MES"}}, ), ], - "juriscraper.opinions.united_states.territories.nmi": [ + "juriscraper.opinions.united_states.territories.nmariana": [ ( """#E-FILED\nCNMI SUPREME COURT\nE-filed: Apr 18 2022 06:53AM\nClerk Review: Apr 18 2022 06:54AM Filing ID: 67483376\nCase No.: 2021-SCC-0017-CIV\nJudy Aldan""", {"Docket": {"docket_number": "2021-SCC-0017-CIV"}},