add form to edit subscription

This commit is contained in:
2026-01-19 13:52:35 -03:00
parent 3fd7c77469
commit 1c7d4de74a
4 changed files with 36 additions and 27 deletions

View File

@@ -8,23 +8,6 @@ from layercake.dynamodb import (
from ...conftest import HttpApiProxy, LambdaContext
def test_subscription(
app,
seeds,
http_api_proxy: HttpApiProxy,
dynamodb_persistence_layer: DynamoDBPersistenceLayer,
lambda_context: LambdaContext,
):
r = app.lambda_handler(
http_api_proxy(
raw_path='/orgs/e63a579a-4719-4d64-816f-f1650ca73753',
method=HTTPMethod.GET,
),
lambda_context,
)
assert r['statusCode'] == HTTPStatus.OK
def test_add_subscription(
app,
seeds,
@@ -38,7 +21,7 @@ def test_add_subscription(
raw_path=f'/orgs/{org_id}/subscription',
method=HTTPMethod.POST,
body={
'name': 'pytest subscribed',
'name': 'pytest',
'billing_day': 1,
'payment_method': 'MANUAL',
},
@@ -55,4 +38,4 @@ def test_add_subscription(
assert r['metadata']['billing_day'] == 1
assert r['metadata']['payment_method'] == 'MANUAL'
assert r['subscription']['name'] == 'pytest subscribed'
assert r['subscription']['name'] == 'pytest'