add form to edit subscription
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user