diff --git a/la_chariotte/order/tests/test_models.py b/la_chariotte/order/tests/test_models.py index d1dfe2e..1403305 100644 --- a/la_chariotte/order/tests/test_models.py +++ b/la_chariotte/order/tests/test_models.py @@ -14,22 +14,22 @@ pytestmark = pytest.mark.django_db class TestGroupedOrderModel: """Tests for Grouped orders model""" - def test_is_ongoing_with_ongoing_grouped_order(self): + def test_is_open_with_ongoing_grouped_order(self): """ - is_ongoing() returns True if the deadline is not crossed + is_open() returns True if the deadline is not crossed """ deadline = timezone.now() + datetime.timedelta(days=10) ongoing_gr_order = GroupedOrder(deadline=deadline) - assert ongoing_gr_order.is_ongoing() + assert ongoing_gr_order.is_open() - def test_is_ongoing_with_old_grouped_order(self): + def test_is_open_with_old_grouped_order(self): """ - is_ongoing() returns False if the deadline is crossed + is_open() returns False if the deadline is crossed """ deadline = timezone.now() - datetime.timedelta(hours=1) old_gr_order = GroupedOrder(deadline=deadline) - assert not old_gr_order.is_ongoing() + assert not old_gr_order.is_open() def test_is_to_be_delivered_with_today_delivery(self): """