boto3 SQS set attributes fix.
This commit is contained in:
parent
a9d161e58e
commit
3fd33c03bf
2 changed files with 19 additions and 3 deletions
|
|
@ -491,3 +491,14 @@ def test_boto3_message_send():
|
|||
|
||||
messages = queue.receive_messages()
|
||||
messages.should.have.length_of(1)
|
||||
|
||||
|
||||
@mock_sqs
|
||||
def test_boto3_set_queue_attributes():
|
||||
sqs = boto3.resource('sqs', region_name='us-east-1')
|
||||
queue = sqs.create_queue(QueueName="blah")
|
||||
|
||||
queue.attributes['VisibilityTimeout'].should.equal("30")
|
||||
|
||||
queue.set_attributes(Attributes={"VisibilityTimeout": "45"})
|
||||
queue.attributes['VisibilityTimeout'].should.equal("45")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue