Skip to content

Commit

Permalink
Removed print statements because it messes with the tests (#2789)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker authored Mar 7, 2024
1 parent b96f03d commit d62dc90
Showing 1 changed file with 3 additions and 9 deletions.
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

0 comments on commit d62dc90

Please sign in to comment.