add email events

This commit is contained in:
2025-07-30 21:55:52 -03:00
parent d4f7c84cdf
commit 4b7783964f
14 changed files with 220 additions and 276 deletions

View File

@@ -67,3 +67,24 @@ def test_billing(
},
]
assert data['items'] == expected
def test_billing_terms(
mock_app,
dynamodb_seeds,
http_api_proxy: HttpApiProxy,
lambda_context: LambdaContext,
):
org_id = 'edp8njvgQuzNkLx2ySNfAD'
# This data was added from seeds
r = mock_app.lambda_handler(
http_api_proxy(
raw_path=f'/billing/{org_id}/terms',
method=HTTPMethod.GET,
),
lambda_context,
)
data = json.loads(r['body'])
assert 'billing_day' in data