Let users send inbound emoji

Implements:
- [ ] https://github.com/alphagov/notifications-utils/pull/167

Required some refactoring to be able to defined the `is_inbound`
variable.
This commit is contained in:
Chris Hill-Scott
2017-06-07 15:46:34 +01:00
parent 085f5f9b22
commit bff9365d1b
3 changed files with 15 additions and 18 deletions

View File

@@ -76,8 +76,6 @@ def test_view_conversation(
expected,
):
print(index)
response = logged_in_client.get(url_for(
'main.conversation',
service_id=SERVICE_ONE_ID,
@@ -89,9 +87,8 @@ def test_view_conversation(
messages = page.select('.sms-message-wrapper')
statuses = page.select('.sms-message-status')
for elements in (messages, statuses):
assert len(elements) == 13
assert len(messages) == 13
assert len(statuses) == 13
assert (
normalize_spaces(messages[index].text),
normalize_spaces(statuses[index].text),