Skip to content

Commit

Permalink
Give good repr to datetimes strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Sep 22, 2015
1 parent fb4bdf0 commit 1842705
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hypothesis/extra/datetime.py
Expand Up @@ -23,6 +23,7 @@
import hypothesis.internal.distributions as dist
from hypothesis.errors import InvalidArgument
from hypothesis.control import assume
from hypothesis.strategies import defines_strategy
from hypothesis.internal.compat import hrange, text_type
from hypothesis.searchstrategy.strategies import BadData, strategy, \
check_length, SearchStrategy, check_data_type
Expand Down Expand Up @@ -247,6 +248,7 @@ def from_basic(self, values):
return template


@defines_strategy
def datetimes(allow_naive=None, timezones=None, min_year=None, max_year=None):
"""Return a strategy for generating datetimes.
Expand Down

0 comments on commit 1842705

Please sign in to comment.