add tests to email

This commit is contained in:
2025-11-26 23:33:12 -03:00
parent 5859248781
commit ab7e4ea38b
9 changed files with 1040 additions and 718 deletions

View File

@@ -0,0 +1,20 @@
from http import HTTPMethod, HTTPStatus
from ...conftest import HttpApiProxy, LambdaContext
def test_get_orgs(
app,
seeds,
http_api_proxy: HttpApiProxy,
lambda_context: LambdaContext,
):
r = app.lambda_handler(
http_api_proxy(
raw_path='/users/213a6682-2c59-4404-9189-12eec0a846d4/orgs',
method=HTTPMethod.GET,
),
lambda_context,
)
assert r['statusCode'] == HTTPStatus.OK