Skip to content

Commit

Permalink
Rename test to be more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitlock committed Apr 13, 2022
1 parent 1ce16e6 commit f13a1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emails/tests/mgmt_process_emails_from_sqs_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ def test_process_queue_verify_from_sns_raises_keyerror(mock_verify_from_sns):
AWS_REGION="us-east-2",
AWS_SQS_EMAIL_QUEUE_URL="https://sqs.us-east-2.amazonaws.example.com/111222333/queue-name",
)
def test_command_golden_path(mock_boto3_queue_constructor):
"""The command runs successfully until completion."""
def test_command_successful_setup(mock_boto3_queue_constructor):
"""The command constructs a Queue from Django settings."""
mock_boto3_queue_constructor.return_value = fake_queue()
call_command("process_emails_from_sqs", "--max-seconds=4")
mock_boto3_queue_constructor.assert_called_once_with(
Expand Down

0 comments on commit f13a1df

Please sign in to comment.