Skip to content

Commit

Permalink
Merge pull request #1759 from wittejm/remove-proposed-order-from-umat…
Browse files Browse the repository at this point in the history
…illa-county-2

Remove proposed order form from umatilla county
  • Loading branch information
wittejm authored Oct 28, 2024
2 parents 5e3fd57 + 1fcdb99 commit 77122b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/backend/expungeservice/form_filling.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,8 @@ def validate_initial_state(self):
class FormFilling:
OREGON_PDF_NAME = "oregon"
NON_OREGON_PDF_COUNTIES = ["multnomah"]
COUNTIES_NEEDING_CONVICTION_OR_ARREST_ORDER = ["umatilla", "multnomah"]
COUNTIES_NEEDING_COUNTY_SPECIFIC_DOWNLOAD_NAME = ["umatilla"]
COUNTIES_NEEDING_CONVICTION_OR_ARREST_ORDER = ["multnomah"]
COUNTIES_NEEDING_COUNTY_SPECIFIC_DOWNLOAD_NAME : List[str] = []
OSP_PDF_NAME = "OSP_Form"
#COMPILED_PDF_NAME = "COMPILED_MOTIONS"

Expand Down
11 changes: 8 additions & 3 deletions src/backend/tests/test_form_filling.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,11 @@ def assert_correct_download_file_path(self, county: str, expected_file_name: str
assert file_path == "dir/case_name_case_number_" + expected_file_name

def test_correct_pdf_path_is_built(self):
'''
No longer an active test because umatilla no longer has special behavior, but if we add the Proposed Order back onto a county we will use this code
self.assert_correct_pdf_file_name("Umatilla", "oregon_arrest.pdf", has_convictions=False)
self.assert_correct_pdf_file_name("Umatilla", "oregon_conviction.pdf", has_convictions=True)
'''

self.assert_correct_pdf_file_name("Multnomah", "multnomah_arrest.pdf", has_convictions=False)
self.assert_correct_pdf_file_name("Multnomah", "multnomah_conviction.pdf", has_convictions=True)
Expand All @@ -224,9 +227,10 @@ def test_correct_pdf_path_is_built(self):
self.assert_correct_pdf_file_name("unknown", "oregon.pdf", has_convictions=True)

def test_correct_download_file_path_is_built(self):
'''
self.assert_correct_download_file_path("Umatilla", "umatilla_with_arrest_order.pdf", has_convictions=False)
self.assert_correct_download_file_path("Umatilla", "umatilla_with_conviction_order.pdf", has_convictions=True)

'''
self.assert_correct_download_file_path("Other", "other.pdf", has_convictions=False)
self.assert_correct_download_file_path("Other", "other.pdf", has_convictions=True)

Expand Down Expand Up @@ -587,7 +591,8 @@ def test_has_misdemeanor_class_a_severity_level(self, conviction_charge: Mock, p
pdf_factory([conviction_charge]), {**self.expected_conviction_values, **new_expected_values}
)


'''
No longer an active test because umatilla no longer has special behavior, but if we add the Proposed Order back onto a county we will use this code
class TestBuildUmatillaPDF(TestBuildOregonPDF):
county = "Umatilla"
expected_county_data = {
Expand Down Expand Up @@ -639,7 +644,7 @@ def test_has_contempt_of_court_and_case_number_with_comments(self, conviction_ch
**new_expected_values,
}
self.assert_pdf_values(pdf_factory([conviction_charge]), all_expected_values)

'''

class TestBuildMultnomahPDF(PDFTestFixtures):
county = "Multnomah"
Expand Down

0 comments on commit 77122b4

Please sign in to comment.