add zustard
This commit is contained in:
@@ -50,6 +50,7 @@ app.include_router(users.password, prefix='/users')
|
||||
app.include_router(orders.router, prefix='/orders')
|
||||
app.include_router(orders.checkout, prefix='/orders')
|
||||
app.include_router(orgs.add, prefix='/orgs')
|
||||
app.include_router(orgs.address, prefix='/orgs')
|
||||
app.include_router(orgs.admins, prefix='/orgs')
|
||||
app.include_router(orgs.billing, prefix='/orgs')
|
||||
app.include_router(orgs.custom_pricing, prefix='/orgs')
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from .add import router as add
|
||||
from .address import router as address
|
||||
from .admins import router as admins
|
||||
from .billing import router as billing
|
||||
from .custom_pricing import router as custom_pricing
|
||||
@@ -9,6 +10,7 @@ from .users.batch_jobs import router as batch_jobs
|
||||
|
||||
__all__ = [
|
||||
'add',
|
||||
'address',
|
||||
'admins',
|
||||
'billing',
|
||||
'custom_pricing',
|
||||
|
||||
22
api.saladeaula.digital/tests/routes/orgs/test_address.py
Normal file
22
api.saladeaula.digital/tests/routes/orgs/test_address.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from http import HTTPMethod, HTTPStatus
|
||||
|
||||
from layercake.dynamodb import DynamoDBPersistenceLayer
|
||||
|
||||
from ...conftest import HttpApiProxy, LambdaContext
|
||||
|
||||
|
||||
def test_address(
|
||||
app,
|
||||
seeds,
|
||||
http_api_proxy: HttpApiProxy,
|
||||
dynamodb_persistence_layer: DynamoDBPersistenceLayer,
|
||||
lambda_context: LambdaContext,
|
||||
):
|
||||
r = app.lambda_handler(
|
||||
http_api_proxy(
|
||||
raw_path='/orgs/cJtK9SsnJhKPyxESe7g3DG/address',
|
||||
method=HTTPMethod.GET,
|
||||
),
|
||||
lambda_context,
|
||||
)
|
||||
assert r['statusCode'] == HTTPStatus.OK
|
||||
Reference in New Issue
Block a user