summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2015-03-03 22:50:49 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2015-03-03 22:51:30 +0100
commit6b9a2b5d9aaa1f4fb06819240a7b243fcfd79943 (patch)
treee8cc3684ef5927dd45a7373dedb00e70ab36f1a9 /factory
parentc666411153ea9840b492f7abecf0cfa51e21dc27 (diff)
downloadfactory-boy-6b9a2b5d9aaa1f4fb06819240a7b243fcfd79943.tar
factory-boy-6b9a2b5d9aaa1f4fb06819240a7b243fcfd79943.tar.gz
Logs: Allow non-integer sequences (Closes #148).
As pointed by @glinmac.
Diffstat (limited to 'factory')
-rw-r--r--factory/declarations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/factory/declarations.py b/factory/declarations.py
index f6f5846..b3833ee 100644
--- a/factory/declarations.py
+++ b/factory/declarations.py
@@ -194,7 +194,7 @@ class Sequence(OrderedDeclaration):
self.type = type
def evaluate(self, sequence, obj, create, extra=None, containers=()):
- logger.debug("Sequence: Computing next value of %r for seq=%d", self.function, sequence)
+ logger.debug("Sequence: Computing next value of %r for seq=%s", self.function, sequence)
return self.function(self.type(sequence))
@@ -208,7 +208,7 @@ class LazyAttributeSequence(Sequence):
of counter for the 'function' attribute.
"""
def evaluate(self, sequence, obj, create, extra=None, containers=()):
- logger.debug("LazyAttributeSequence: Computing next value of %r for seq=%d, obj=%r",
+ logger.debug("LazyAttributeSequence: Computing next value of %r for seq=%s, obj=%r",
self.function, sequence, obj)
return self.function(obj, self.type(sequence))