Fixing test to take python3 into account. (#460)
* Fixing test to take python3 into account.
This commit is contained in:
parent
1ac1a44e83
commit
d99681904e
@ -5,9 +5,8 @@ def test_formatting(certificate):
|
||||
from lemur.notifications.service import _get_message_data
|
||||
data = [_get_message_data(certificate)]
|
||||
|
||||
attachments = [
|
||||
{
|
||||
'title': 'certificate0',
|
||||
attachment = {
|
||||
'title': certificate.name,
|
||||
'color': 'danger',
|
||||
'fields': [
|
||||
{
|
||||
@ -25,10 +24,10 @@ def test_formatting(certificate):
|
||||
'title': 'Endpoints Detected'
|
||||
}
|
||||
],
|
||||
'title_link': 'https://lemur.example.com/#/certificates/certificate0',
|
||||
'title_link': 'https://lemur.example.com/#/certificates/{name}'.format(name=certificate.name),
|
||||
'mrkdwn_in': ['text'],
|
||||
'text': '',
|
||||
'fallback': ''
|
||||
}
|
||||
]
|
||||
assert attachments == create_expiration_attachments(data)
|
||||
|
||||
assert attachment == create_expiration_attachments(data)[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user