Completed
Push — master ( b657e5...d8feac )
by George
04:13 queued 02:05
created

test_sqs_route()   A

Complexity

Conditions 2

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
from loafer.ext.aws.routes import SQSRoute, SNSQueueRoute
2
from loafer.ext.aws.message_translators import SQSMessageTranslator, SNSMessageTranslator
3
4
5
def test_sqs_route():
6
    route = SQSRoute('what', 'ever')
7
    assert isinstance(route.message_translator, SQSMessageTranslator)
0 ignored issues
show
Bug introduced by
The Instance of SQSRoute does not seem to have a member named message_translator.

This check looks for calls to members that are non-existent. These calls will fail.

The member could have been renamed or removed.

Loading history...
8
9
10
def test_sns_queue_route():
11
    route = SNSQueueRoute('what', 'ever')
12
    assert isinstance(route.message_translator, SNSMessageTranslator)
0 ignored issues
show
Bug introduced by
The Instance of SNSQueueRoute does not seem to have a member named message_translator.

This check looks for calls to members that are non-existent. These calls will fail.

The member could have been renamed or removed.

Loading history...
13