mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
Fix linting errors
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import pytest
|
||||
|
||||
from flask import json
|
||||
from freezegun import freeze_time
|
||||
from tests import create_authorization_header
|
||||
from unittest.mock import ANY
|
||||
from . import sample_cap_xml_documents
|
||||
@@ -80,12 +79,12 @@ def test_valid_post_cap_xml_broadcast_returns_201(
|
||||
response_json = json.loads(response.get_data(as_text=True))
|
||||
|
||||
assert response_json['approved_at'] is None
|
||||
assert response_json['approved_by_id'] == None
|
||||
assert response_json['approved_by_id'] is None
|
||||
assert response_json['areas'] == [
|
||||
'River Steeping in Wainfleet All Saints'
|
||||
]
|
||||
assert response_json['cancelled_at'] == None
|
||||
assert response_json['cancelled_by_id'] == None
|
||||
assert response_json['cancelled_at'] is None
|
||||
assert response_json['cancelled_by_id'] is None
|
||||
assert response_json['content'].startswith(
|
||||
'A severe flood warning has been issued. Storm Dennis'
|
||||
)
|
||||
@@ -94,7 +93,7 @@ def test_valid_post_cap_xml_broadcast_returns_201(
|
||||
)
|
||||
assert response_json['reference'] == '50385fcb0ab7aa447bbd46d848ce8466E'
|
||||
assert response_json['created_at'] # datetime generated by the DB so can’t freeze it
|
||||
assert response_json['created_by_id'] == None
|
||||
assert response_json['created_by_id'] is None
|
||||
assert response_json['finishes_at'] is None
|
||||
assert response_json['id'] == ANY
|
||||
assert response_json['personalisation'] is None
|
||||
|
||||
Reference in New Issue
Block a user