lingo: fix untested path in notify_new_remote_invoices (#22732)

This commit is contained in:
Benjamin Dauvergne 2018-03-24 02:18:47 +01:00 committed by Frédéric Péters
parent dab07696ff
commit 7ff1299e2f
1 changed files with 4 additions and 0 deletions

View File

@ -396,6 +396,10 @@ def test_notify_remote_items(mock_get, app, john_doe, jane_doe, regie, monkeypat
regie.notify_new_remote_invoices()
assert Notification.objects.count() == 4
freezer.move_to(invoice_now + timedelta(days=21))
regie.notify_new_remote_invoices()
assert Notification.objects.visible().count() == 0
def test_notification_never_expire(app, freezer, rf, john_doe):
start = freezer()