Skip to content

Removed print statements because it messes with the tests #2789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions tests/integrations/aws_lambda/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def run_lambda_function(
FunctionName=full_fn_name,
)
print(
f"Lambda function {full_fn_name} in AWS already existing, taking it (and do not create a local one)"
"Lambda function in AWS already existing, taking it (and do not create a local one)"
)
except client.exceptions.ResourceNotFoundException:
function_exists_in_aws = False
Expand All @@ -251,14 +251,9 @@ def run_lambda_function(
dir_already_existing = os.path.isdir(base_dir)

if dir_already_existing:
print(
f"Local Lambda function directory ({base_dir}) already exists, skipping creation"
)
print("Local Lambda function directory already exists, skipping creation")

if not dir_already_existing:
print(
f"Creating Lambda function package ({full_fn_name}) locally in directory {base_dir}"
)
os.mkdir(base_dir)
_create_lambda_package(
base_dir, code, initial_handler, layer, syntax_check, subprocess_kwargs
Expand Down Expand Up @@ -321,10 +316,9 @@ def clean_up():

waiter = client.get_waiter("function_active_v2")
waiter.wait(FunctionName=full_fn_name)
print(f"Created Lambda function in AWS: {full_fn_name}")
except client.exceptions.ResourceConflictException:
print(
f"Lambda function ({full_fn_name}) already existing in AWS, this is fine, we will just invoke it."
"Lambda function already exists, this is fine, we will just invoke it."
)

response = client.invoke(
Expand Down