add better auth

This commit is contained in:
2025-03-25 11:45:09 -03:00
parent 2218a6f867
commit 317c79cee2
11 changed files with 912 additions and 46 deletions

View File

@@ -18,19 +18,21 @@ def test_post_course(
http_api_proxy(
raw_path='/courses',
method=HTTPMethod.POST,
headers={'Tenant': '*'},
body={
'course': {
'name': 'pytest',
'access_period': 365,
},
'org': {
'id': '6RQuJ7koa9Gz4ZXTA4NeGR',
'name': 'EDUSEG',
},
'cert': {
'exp_interval': 730, # 2 years
},
}
},
),
lambda_context,
)
print(r)
assert 'id' in json.loads(r['body'])
assert r['statusCode'] == HTTPStatus.CREATED