Example #1
0
 def format_date(self, date):
     return utils.format_petition_date(date)
Example #2
0
def test_map_offenses__arrest_date(form, record2, offense_record1):
    form.map_offenses()
    assert form.data["ArrestDateRow1"] == utils.format_petition_date(
        record2.arrest_date)
Example #3
0
def test_map_offenses__disposition_date(form, offense1, offense_record1):
    form.map_offenses()
    assert form.data["DispositionDateRow1"] == utils.format_petition_date(
        offense1.disposed_on)
Example #4
0
def test_map_offenses__offense_date(form, record2, offense_record1):
    form.map_offenses()
    assert form.data["DateOfOffenseRow1"] == utils.format_petition_date(
        record2.offense_date)
Example #5
0
def test_map_petitioner__dob(form, record2, offense_record1):
    record2.dob = dt.date(2000, 1, 1)
    record2.save()
    form.map_petitioner()
    assert form.data["DOB"] == utils.format_petition_date(record2.dob)
Example #6
0
def test_map_attorney__petition_not_filed_sign_date(form, contact1):
    form.extra["attorney"] = contact1
    form.map_attorney()
    assert form.data["PetitionNotFiledSignDate"] == utils.format_petition_date(
        dt.datetime.today())