First version of dashboard.
This commit is contained in:
parent
cf771d7f14
commit
1709208872
9 changed files with 249 additions and 7 deletions
|
|
@ -7,6 +7,7 @@ from xml.sax.saxutils import escape
|
|||
import boto.sqs
|
||||
|
||||
from moto.core import BaseBackend
|
||||
from moto.core.models import BaseModel
|
||||
from moto.core.utils import camelcase_to_underscores, get_random_message_id, unix_time, unix_time_millis
|
||||
from .utils import generate_receipt_handle
|
||||
from .exceptions import (
|
||||
|
|
@ -18,7 +19,7 @@ DEFAULT_ACCOUNT_ID = 123456789012
|
|||
DEFAULT_SENDER_ID = "AIDAIT2UOQQY3AUEKVGXU"
|
||||
|
||||
|
||||
class Message(object):
|
||||
class Message(BaseModel):
|
||||
|
||||
def __init__(self, message_id, body):
|
||||
self.id = message_id
|
||||
|
|
@ -93,7 +94,7 @@ class Message(object):
|
|||
return False
|
||||
|
||||
|
||||
class Queue(object):
|
||||
class Queue(BaseModel):
|
||||
camelcase_attributes = ['ApproximateNumberOfMessages',
|
||||
'ApproximateNumberOfMessagesDelayed',
|
||||
'ApproximateNumberOfMessagesNotVisible',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue