Skip to content

Commit

Permalink
Fixing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviamclaughlin authored Oct 5, 2024
1 parent bce59ac commit d1ed5a8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/tests/integrations/aws/test_sqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ def test_get_queue_url_invalid_queue_name(mock_execute_api_call):
queue_name = "" # Invalid queue name
mock_execute_api_call.return_value = False

result = get_queue_url(queue_name)
# Act & Assert
mock_execute_api_call.assert_called_once_with(
"sqs", "get_queue_url", QueueName=queue_name
)
assert result is False
get_queue_url(queue_name)
# Assert
mock_execute_api_call.assert_not_called()


@patch("integrations.aws.sqs.execute_aws_api_call")
Expand Down

0 comments on commit d1ed5a8

Please sign in to comment.