Skip to content

Commit

Permalink
remove START_EXECUTION_WORKER_ARN patches in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jtherrmann committed Mar 7, 2025
1 parent e4b57fd commit c46e857
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/test_start_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ def test_lambda_handler_500_jobs():
with (
patch('dynamo.jobs.get_jobs_waiting_for_execution') as mock_get_jobs_waiting_for_execution,
patch('start_execution.submit_jobs') as mock_submit_jobs,
patch.dict(os.environ, {'START_EXECUTION_WORKER_ARN': 'test-worker-function-arn'}, clear=True),
patch.dict(os.environ, {'STEP_FUNCTION_ARN': 'test-step-function-arn'}, clear=True),
):
mock_jobs = list(range(500))
Expand All @@ -204,7 +203,6 @@ def test_lambda_handler_400_jobs():
with (
patch('dynamo.jobs.get_jobs_waiting_for_execution') as mock_get_jobs_waiting_for_execution,
patch('start_execution.submit_jobs') as mock_submit_jobs,
patch.dict(os.environ, {'START_EXECUTION_WORKER_ARN': 'test-worker-function-arn'}, clear=True),
patch.dict(os.environ, {'STEP_FUNCTION_ARN': 'test-step-function-arn'}, clear=True),
):
mock_jobs = list(range(400))
Expand All @@ -223,7 +221,6 @@ def test_lambda_handler_50_jobs():
with (
patch('dynamo.jobs.get_jobs_waiting_for_execution') as mock_get_jobs_waiting_for_execution,
patch('start_execution.submit_jobs') as mock_submit_jobs,
patch.dict(os.environ, {'START_EXECUTION_WORKER_ARN': 'test-worker-function-arn'}, clear=True),
patch.dict(os.environ, {'STEP_FUNCTION_ARN': 'test-step-function-arn'}, clear=True),
):
mock_jobs = list(range(50))
Expand All @@ -242,7 +239,6 @@ def test_lambda_handler_no_jobs():
with (
patch('dynamo.jobs.get_jobs_waiting_for_execution') as mock_get_jobs_waiting_for_execution,
patch('start_execution.submit_jobs') as mock_submit_jobs,
patch.dict(os.environ, {'START_EXECUTION_WORKER_ARN': 'test-worker-function-arn'}, clear=True),
patch.dict(os.environ, {'STEP_FUNCTION_ARN': 'test-step-function-arn'}, clear=True),
):
mock_get_jobs_waiting_for_execution.return_value = []
Expand Down

0 comments on commit c46e857

Please sign in to comment.