add email events
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user