Fix the unit tests.

I think there was some imports missed when resolving merge conflicts.
Also I'm not sure why the test_update_letter_notification_to_sent or error passed, I've updated them so they do pass.
This commit is contained in:
Rebecca Law
2017-10-02 15:29:13 +01:00
parent d5c9174641
commit 0db39bfac8
3 changed files with 11 additions and 10 deletions

View File

@@ -95,8 +95,8 @@ def test_update_letter_notifications_to_sent_to_dvla_updates_based_on_notificati
client,
sample_letter_template
):
first = create_notification(sample_letter_template)
second = create_notification(sample_letter_template)
first = create_notification(sample_letter_template, reference='first ref')
second = create_notification(sample_letter_template, reference='second ref')
dt = datetime.utcnow()
with freeze_time(dt):
@@ -113,8 +113,8 @@ def test_update_letter_notifications_to_error_updates_based_on_notification_refe
client,
sample_letter_template
):
first = create_notification(sample_letter_template)
second = create_notification(sample_letter_template)
first = create_notification(sample_letter_template, reference='first ref')
second = create_notification(sample_letter_template, reference='second ref')
dt = datetime.utcnow()
with freeze_time(dt):