diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-17 18:47:04 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-18 14:17:05 +0200 |
commit | 69894fce7977ea55f8cc3ad141840bab49330859 (patch) | |
tree | 07eb056883112ef58b7be037cde76c5f805c8ba2 /tests/alter_time.py | |
parent | 1fdba9d9417e8f69b39784ee19129a6c43128620 (diff) | |
download | factory-boy-69894fce7977ea55f8cc3ad141840bab49330859.tar factory-boy-69894fce7977ea55f8cc3ad141840bab49330859.tar.gz |
Switch FACTORY_FOR and related to 'class Meta'.
This is easier to declare, avoids cluttering the namespace, and provides
entry points for ORM-specific customization.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'tests/alter_time.py')
-rw-r--r-- | tests/alter_time.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/alter_time.py b/tests/alter_time.py index db0a611..aa2db3b 100644 --- a/tests/alter_time.py +++ b/tests/alter_time.py @@ -7,7 +7,7 @@ from __future__ import print_function import datetime -import mock +from .compat import mock real_datetime_class = datetime.datetime |