Fix linting errors

This commit is contained in:
Katie Smith
2021-02-16 09:03:38 +00:00
parent 64ed50da17
commit 6b8ebb3421
11 changed files with 26 additions and 22 deletions

View File

@@ -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 cant 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