From 27e7767883153ce3aa17a9842da4fcf6c85b9f1d Mon Sep 17 00:00:00 2001 From: Ian Dees Date: Mon, 9 Nov 2015 20:19:51 -0500 Subject: [PATCH] Remove stuff that doesn't need to change --- moto/sqs/exceptions.py | 5 ----- moto/sqs/models.py | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/moto/sqs/exceptions.py b/moto/sqs/exceptions.py index c9d0d73c5..d72cfdffc 100644 --- a/moto/sqs/exceptions.py +++ b/moto/sqs/exceptions.py @@ -11,11 +11,6 @@ class ReceiptHandleIsInvalid(Exception): status_code = 400 -class InvalidParameterValue(Exception): - description = "One or more parameters are invalid. Reason: Message must be shorter than 262144 bytes." - status_code = 400 - - class MessageAttributesInvalid(Exception): status_code = 400 diff --git a/moto/sqs/models.py b/moto/sqs/models.py index 653c5316a..efb75dd9c 100644 --- a/moto/sqs/models.py +++ b/moto/sqs/models.py @@ -12,8 +12,7 @@ from moto.core.utils import camelcase_to_underscores, get_random_message_id from .utils import generate_receipt_handle, unix_time_millis from .exceptions import ( ReceiptHandleIsInvalid, - MessageNotInflight, - InvalidParameterValue, + MessageNotInflight ) DEFAULT_ACCOUNT_ID = 123456789012 @@ -121,6 +120,7 @@ class Queue(object): self.created_timestamp = now self.delay_seconds = 0 self.last_modified_timestamp = now + self.maximum_message_size = 64 << 10 self.message_retention_period = 86400 * 4 # four days self.queue_arn = 'arn:aws:sqs:sqs.us-east-1:123456789012:%s' % self.name self.receive_message_wait_time_seconds = 0