February 2018
Intermediate to advanced
456 pages
9h 56m
English
Now, we are going to test the get_order_by_period method, which returns a list of orders given an initial and an end date. For this method, we are going to perform the following tests:
def test_get_orders_by_period(self): date_from = timezone.now() - relativedelta(days=1) date_to = date_from + relativedelta(days=2) orders = ...
Read now
Unlock full access