diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -188,10 +188,16 @@ Debugging factory_boy """"""""""""""""""""" Debugging factory_boy can be rather complex due to the long chains of calls. -Detailed logging is available through the ``factory`` logger: +Detailed logging is available through the ``factory`` logger. + +A helper, :meth:`factory.debug()`, is available to ease debugging: .. code-block:: python + with factory.debug(): + obj = TestModel2Factory() + + import logging logger = logging.getLogger('factory') logger.addHandler(logging.StreamHandler()) |