From 61ca30452d932a21f2b6cd80bcc7b81ca350e2e2 Mon Sep 17 00:00:00 2001 From: Bryce Willey Date: Tue, 12 Aug 2025 13:01:57 -0400 Subject: [PATCH 1/2] Add config documentation to README Also correct old config name used in `minimal_interview.yml` (mostly unused, except for documentation). --- README.md | 17 ++++++++++++++++- .../data/questions/minimal_interview.yml | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a756583..10a24c3 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,22 @@ Main interviews of import: * any_filing_interview.yml: allows you to make any type of filing, initial or subsequent * admin_interview.yml: lets you handle admin / user functionality, outside of the context of cases and filings -In progress! +## Config + +Different parts of this package expect the below to be present in Docassemble's +config. + +```yaml +efile proxy: + # The URL where the Efile Proxy Server is running + url: https:... + # The Proxy Server's API Key (should be provided to you by the sever admins) + api key: ... + # If you're given an EFSP global fee waiver ID for your jurisdiction, put it here + global waivers: + illinois: ... + massachusetts: ... +``` ## Authors diff --git a/docassemble/EFSPIntegration/data/questions/minimal_interview.yml b/docassemble/EFSPIntegration/data/questions/minimal_interview.yml index 73797b7..ffec9d3 100644 --- a/docassemble/EFSPIntegration/data/questions/minimal_interview.yml +++ b/docassemble/EFSPIntegration/data/questions/minimal_interview.yml @@ -51,7 +51,7 @@ code: | tyler_login lead_contact = users[0] main_document.completed - tyler_payment_id = get_config('efile proxy', {}).get('global waiver', '') + tyler_payment_id = get_config('efile proxy', {}).get('global waivers', [''])[0] ready_to_efile efile ending_screen From f42027292d64aa5d6d4fe7f36ae4b466f856ebc9 Mon Sep 17 00:00:00 2001 From: Bryce Willey Date: Wed, 27 Aug 2025 09:38:06 -0400 Subject: [PATCH 2/2] Add 'do not pre-load' to all test files. See https://github.com/SuffolkLITLab/docassemble-ALToolbox/pull/285 and https://github.com/SuffolkLITLab/docassemble-GithubFeedbackForm/pull/76. --- docassemble/EFSPIntegration/test/test_conversions.py | 2 ++ docassemble/EFSPIntegration/test/test_interview_functions.py | 2 ++ docassemble/EFSPIntegration/test/test_proxy_conn.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docassemble/EFSPIntegration/test/test_conversions.py b/docassemble/EFSPIntegration/test/test_conversions.py index 5c5d052..8ff1bc1 100644 --- a/docassemble/EFSPIntegration/test/test_conversions.py +++ b/docassemble/EFSPIntegration/test/test_conversions.py @@ -1,3 +1,5 @@ +# do not pre-load + import json import unittest from unittest.mock import MagicMock diff --git a/docassemble/EFSPIntegration/test/test_interview_functions.py b/docassemble/EFSPIntegration/test/test_interview_functions.py index 7263dd6..b4ffd00 100644 --- a/docassemble/EFSPIntegration/test/test_interview_functions.py +++ b/docassemble/EFSPIntegration/test/test_interview_functions.py @@ -1,3 +1,5 @@ +# do not pre-load + import unittest from ..interview_logic import ( make_filters, diff --git a/docassemble/EFSPIntegration/test/test_proxy_conn.py b/docassemble/EFSPIntegration/test/test_proxy_conn.py index f8aac1c..51b8a35 100644 --- a/docassemble/EFSPIntegration/test/test_proxy_conn.py +++ b/docassemble/EFSPIntegration/test/test_proxy_conn.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python3 +# do not pre-load """ Env vars needed to run: