django-whatever
django-whatever copied to clipboard
``xunit.any_date`` and ``xunit.any_datetime`` ``to_date`` argument shouldn't be evaluated at creation time
This
def any_date(from_date=date(1990, 1, 1), to_date=date.today()):
is not a very good idea. If the code runs for a lot of time, to_date
won't be changing. At it makes documentation misleading:
django_any.xunit.any_date(from_date=datetime.date(1990, 1, 1), to_date=datetime.date(2012, 5, 3))
Seems like a strange default choice for to_date
. :-)