diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2016-02-15 00:00:03 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2016-02-15 00:12:17 +0100 |
commit | efc8a7e873aaab5170e1dc2477aaf92c6fb59fc5 (patch) | |
tree | 66288acbac0533758c8db4456714efee49d27cca | |
parent | 4fc9caa17bd464cf749bfba6af0a4c698da30ccb (diff) | |
download | factory-boy-efc8a7e873aaab5170e1dc2477aaf92c6fb59fc5.tar factory-boy-efc8a7e873aaab5170e1dc2477aaf92c6fb59fc5.tar.gz |
fuzzy: Minor cleanup in BaseFuzzyDateTime
The ``_now()`` method wasn't declared on the base class, only in its
subclasses.
-rw-r--r-- | factory/fuzzy.py | 3 |
1 files changed, 3 insertions, 0 deletions
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, |