Skip to content

Commit aad4396

Browse files
committed
Make directory name and function name the same
1 parent a57575a commit aad4396

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

tests/integrations/aws_lambda/test_aws_lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def test_basic_no_exception(lambda_client, test_environment):
135135
}
136136

137137

138-
def test_basic_exception(lambda_client, test_environment):
138+
def test_BasicException(lambda_client, test_environment):
139139
lambda_client.invoke(
140140
FunctionName="BasicException",
141141
Payload=json.dumps({}),

tests/integrations/aws_lambda/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
6262
if os.path.isdir(os.path.join(FUNCTIONS_DIR, d))
6363
]
6464
for lambda_dir in lambda_dirs:
65-
lambda_name = "".join(word.capitalize() for word in lambda_dir.replace("_", " ").replace("-", " ").split())
66-
6765
CfnResource(
6866
self,
69-
lambda_name,
67+
lambda_dir,
7068
type="AWS::Serverless::Function",
7169
properties={
7270
"CodeUri": os.path.join(FUNCTIONS_DIR, lambda_dir),
@@ -83,7 +81,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
8381
},
8482
},
8583
)
86-
print(f" - Created Lambda function: {lambda_name} / {os.path.join(FUNCTIONS_DIR, lambda_dir)}")
84+
print(f" - Created Lambda function: {lambda_dir} ({os.path.join(FUNCTIONS_DIR, lambda_dir)})")
8785

8886

8987
@classmethod

0 commit comments

Comments
 (0)