summaryrefslogtreecommitdiff
path: root/factory/declarations.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2011-09-05 21:24:45 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2011-09-05 21:24:45 +0200
commit0d97937d994d4ec11f77661985be971a61daa6e3 (patch)
treeeac60636282d7ce58d89be34a10da7972f455884 /factory/declarations.py
parent6983f7fcbb9bad0ea825fb3de8682f178fab5647 (diff)
downloadfactory-boy-0d97937d994d4ec11f77661985be971a61daa6e3.tar
factory-boy-0d97937d994d4ec11f77661985be971a61daa6e3.tar.gz
Update docstrings.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'factory/declarations.py')
-rw-r--r--factory/declarations.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/factory/declarations.py b/factory/declarations.py
index b930b4d..898493c 100644
--- a/factory/declarations.py
+++ b/factory/declarations.py
@@ -39,21 +39,21 @@ class GlobalCounter(object):
class OrderedDeclaration(object):
- '''A factory declaration.
+ """A factory declaration.
Ordered declarations keep track of the order in which they're defined so that later declarations
- can refer to attributes created by earlier declarations when the declarations are evaluated.'''
+ can refer to attributes created by earlier declarations when the declarations are evaluated."""
_next_order = 0
def __init__(self):
self.order = GlobalCounter.step()
def evaluate(self, factory, attributes):
- '''Evaluate this declaration.
+ """Evaluate this declaration.
Args:
factory: The factory this declaration was defined in.
- attributes: The attributes created by the unordered and ordered declarations up to this point.'''
+ attributes: The attributes created by the unordered and ordered declarations up to this point."""
raise NotImplementedError('This is an abstract method')