Skip to content

Commit 3da6cee

Browse files
committed
test_DocketParseTest.py: Switch to pacer.DocketReport.from_html_file()
Instead of rolling our own. Helps with consistency.
1 parent aca7dcc commit 3da6cee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/local/test_DocketParseTest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ def run_parsers_on_path(
4040
dirname, filename = os.path.split(path)
4141
filename_sans_ext = filename.split(".")[0]
4242
json_path = os.path.join(dirname, f"{filename_sans_ext}.json")
43+
4344
court = filename_sans_ext.split("_")[0]
45+
report = DocketReport.from_html_file(path)
4446

45-
report = DocketReport(court)
46-
with open(path, "rb") as f:
47-
report._parse_text(f.read().decode("utf-8"))
4847
data = report.data
4948

5049
if data != {}:

0 commit comments

Comments
 (0)