wip
This commit is contained in:
@@ -18,8 +18,6 @@ def pytest_configure():
|
||||
os.environ['COURSE_TABLE'] = PYTEST_TABLE_NAME
|
||||
os.environ['ORDER_TABLE'] = PYTEST_TABLE_NAME
|
||||
os.environ['ENROLLMENT_TABLE'] = PYTEST_TABLE_NAME
|
||||
# Post-migration: remove it
|
||||
os.environ['OLD_ENROLLMENT_TABLE'] = PYTEST_TABLE_NAME
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
0
enrollments-events/tests/events/emails/__init__.py
Normal file
0
enrollments-events/tests/events/emails/__init__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import app.events.emails.reminder_no_access_3_days as app
|
||||
from aws_lambda_powertools.utilities.typing import LambdaContext
|
||||
|
||||
|
||||
def test_reminder_no_access_3_days(
|
||||
dynamodb_client,
|
||||
dynamodb_seeds,
|
||||
lambda_context: LambdaContext,
|
||||
):
|
||||
event = {
|
||||
'detail': {
|
||||
'new_image': {
|
||||
'id': '47ZxxcVBjvhDS5TE98tpfQ',
|
||||
'sk': 'schedules#reminder_no_access_3_days',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assert app.lambda_handler(event, lambda_context)
|
||||
Reference in New Issue
Block a user