def METHOD_NAME(settings):
    settings.SQS_QUEUE_URL = "sqs://fake-queue"
    with patch("domain_events.publisher.boto3") as mock_boto:
        publish_message("MessageType", {"body": "123"}, deduplication_id="idid")
    mock_boto.resource().Queue.assert_called_with(settings.SQS_QUEUE_URL)
    mock_boto.resource().Queue().send_message.assert_called_once_with(
        MessageBody=json.dumps({"body": "123"}),
        MessageAttributes={
            "MessageType": {"StringValue": "MessageType", "DataType": "String"}
        },
        MessageDeduplicationId="MessageType-idid",
        MessageGroupId="MessageType",
    )