mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 01:23:11 -04:00
Remove redundant arguments for broadcast JSON
These are set automatically.
This commit is contained in:
@@ -4,13 +4,8 @@ from app.models.broadcast_message import BroadcastMessage
|
|||||||
from tests import broadcast_message_json
|
from tests import broadcast_message_json
|
||||||
|
|
||||||
|
|
||||||
def test_simple_polygons(fake_uuid):
|
def test_simple_polygons():
|
||||||
broadcast_message = BroadcastMessage(broadcast_message_json(
|
broadcast_message = BroadcastMessage(broadcast_message_json(
|
||||||
id_=fake_uuid,
|
|
||||||
service_id=fake_uuid,
|
|
||||||
template_id=fake_uuid,
|
|
||||||
status='draft',
|
|
||||||
created_by_id=fake_uuid,
|
|
||||||
area_ids=[
|
area_ids=[
|
||||||
# Hackney Central
|
# Hackney Central
|
||||||
'wd20-E05009372',
|
'wd20-E05009372',
|
||||||
@@ -38,24 +33,13 @@ def test_simple_polygons(fake_uuid):
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def test_content_comes_from_attribute_not_template(fake_uuid):
|
def test_content_comes_from_attribute_not_template():
|
||||||
broadcast_message = BroadcastMessage(broadcast_message_json(
|
broadcast_message = BroadcastMessage(broadcast_message_json())
|
||||||
id_=fake_uuid,
|
|
||||||
service_id=fake_uuid,
|
|
||||||
template_id=fake_uuid,
|
|
||||||
status='draft',
|
|
||||||
created_by_id=fake_uuid,
|
|
||||||
))
|
|
||||||
assert broadcast_message.content == 'This is a test'
|
assert broadcast_message.content == 'This is a test'
|
||||||
|
|
||||||
|
|
||||||
def test_areas_raises_for_missing_areas(fake_uuid):
|
def test_areas_raises_for_missing_areas():
|
||||||
broadcast_message = BroadcastMessage(broadcast_message_json(
|
broadcast_message = BroadcastMessage(broadcast_message_json(
|
||||||
id_=fake_uuid,
|
|
||||||
service_id=fake_uuid,
|
|
||||||
template_id=fake_uuid,
|
|
||||||
status='draft',
|
|
||||||
created_by_id=fake_uuid,
|
|
||||||
area_ids=[
|
area_ids=[
|
||||||
'wd20-E05009372',
|
'wd20-E05009372',
|
||||||
'something else',
|
'something else',
|
||||||
|
|||||||
Reference in New Issue
Block a user