From 92bb3cf12120d03a4aa2e4731b7037dee89f94a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Tue, 1 May 2012 14:54:29 +0200 Subject: Fix typo in docs/subfactory.rst (Closes #13). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaƫl Barrois --- docs/subfactory.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/subfactory.rst b/docs/subfactory.rst index 8bc1d8f..1815312 100644 --- a/docs/subfactory.rst +++ b/docs/subfactory.rst @@ -14,7 +14,7 @@ This should be used when defining a :py:class:`~factory.Factory` attribute that # Various fields first_name = 'John' - last_name = factory.Sequence(lambda n: 'D%se' % (o * n)) + last_name = factory.Sequence(lambda n: 'D%se' % ('o' * n)) # De, Doe, Dooe, Doooe, ... email = factory.LazyAttribute(lambda o: '%s.%s@example.org' % (o.first_name.lower(), o.last_name.lower())) # A factory for an object with a 'User' field -- cgit v1.2.3