Fixes broken tests.
This commit is contained in:
parent
b8f6ccd896
commit
45af69b271
@ -9,7 +9,7 @@ from cic_ussd.notifications import Notifier
|
|||||||
|
|
||||||
@pytest.mark.parametrize("key, preferred_language, recipient, expected_message", [
|
@pytest.mark.parametrize("key, preferred_language, recipient, expected_message", [
|
||||||
("ussd.exit", "en", "+254712345678", "END Thank you for using the service."),
|
("ussd.exit", "en", "+254712345678", "END Thank you for using the service."),
|
||||||
("ussd.exit", "sw", "+254712345678", "END Asante kwa kutumia huduma.")
|
("ussd.exit", "sw", "+254712345678", "END Asante kwa kutumia huduma")
|
||||||
])
|
])
|
||||||
def test_send_sms_notification(celery_session_worker,
|
def test_send_sms_notification(celery_session_worker,
|
||||||
expected_message,
|
expected_message,
|
||||||
|
@ -17,5 +17,5 @@ def test_translation_for(set_locale_files):
|
|||||||
key='ussd.exit_invalid_request',
|
key='ussd.exit_invalid_request',
|
||||||
preferred_language='sw'
|
preferred_language='sw'
|
||||||
)
|
)
|
||||||
assert swahili_translation == 'END Chaguo si sahihi.'
|
assert swahili_translation == 'END Chaguo si sahihi'
|
||||||
assert english_translation == 'END Invalid request.'
|
assert english_translation == 'END Invalid request.'
|
||||||
|
Loading…
Reference in New Issue
Block a user