SuffolkLITLab / docassemble-MAVirtualCourt

Project which currently holds code for the Doc Assembly Line project, including dependencies for actual interviews.
Other
7 stars 5 forks source link

Correct court finder logic to detect plaintiffs. Fixes #640 #641

Closed plocket closed 4 years ago

plocket commented 4 years ago

Fixes #640 - court finder should detect plaintiffs.

I could do this at the same time as updating the tests, but then this merge would be held back by the reviews needed for that since they have new functionality that has to be reviewed. Instead I'm just providing the code to test with:

include:
  - basic-questions.yml
---
mandatory: True
code: |
  users[0].address.address
  allowed_courts = [
    'Boston Municipal Court',
    'District Court',
    'Probate and Family Court',
    'Housing Court',
    'Juvenile Court',
    'Superior Court',
    'Land Court',
  ]
  courts[0]
  tests_over
---
id: tests_over
event: tests_over
question: |
  Thanks for testing