From efc8a7e873aaab5170e1dc2477aaf92c6fb59fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Mon, 15 Feb 2016 00:00:03 +0100 Subject: fuzzy: Minor cleanup in BaseFuzzyDateTime The ``_now()`` method wasn't declared on the base class, only in its subclasses. --- factory/fuzzy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/factory/fuzzy.py b/factory/fuzzy.py index a7e834c..71d1884 100644 --- a/factory/fuzzy.py +++ b/factory/fuzzy.py @@ -217,6 +217,9 @@ class BaseFuzzyDateTime(BaseFuzzyAttribute): """%s boundaries should have start <= end, got %r > %r""" % ( self.__class__.__name__, start_dt, end_dt)) + def _now(self): + raise NotImplementedError() + def __init__(self, start_dt, end_dt=None, force_year=None, force_month=None, force_day=None, force_hour=None, force_minute=None, force_second=None, -- cgit v1.2.3