From b36bcc41725680fe06e63ff0af7ee5798fceee34 Mon Sep 17 00:00:00 2001 From: Raphaël Barrois Date: Thu, 16 Aug 2012 23:59:29 +0200 Subject: Improve test coverage. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- factory/__init__.py | 1 + factory/containers.py | 2 +- factory/declarations.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'factory') diff --git a/factory/__init__.py b/factory/__init__.py index 950a64d..d2267f0 100644 --- a/factory/__init__.py +++ b/factory/__init__.py @@ -62,6 +62,7 @@ from declarations import ( SubFactory, CircularSubFactory, PostGeneration, + PostGenerationMethodCall, RelatedFactory, lazy_attribute, diff --git a/factory/containers.py b/factory/containers.py index 946fbd3..6834f60 100644 --- a/factory/containers.py +++ b/factory/containers.py @@ -167,7 +167,7 @@ class PostGenerationDeclarationDict(DeclarationDict): class LazyValue(object): """Some kind of "lazy evaluating" object.""" - def evaluate(self, obj, containers=()): + def evaluate(self, obj, containers=()): # pragma: no cover """Compute the value, using the given object.""" raise NotImplementedError("This is an abstract method.") diff --git a/factory/declarations.py b/factory/declarations.py index 5e45255..77000f2 100644 --- a/factory/declarations.py +++ b/factory/declarations.py @@ -250,7 +250,7 @@ class ParameteredAttribute(OrderedDeclaration): return self.generate(create, defaults) - def generate(self, create, params): + def generate(self, create, params): # pragma: no cover """Actually generate the related attribute. Args: @@ -352,7 +352,7 @@ class PostGenerationDeclaration(object): kwargs = utils.extract_dict(extract_prefix, attrs) return extracted, kwargs - def call(self, obj, create, extracted=None, **kwargs): + def call(self, obj, create, extracted=None, **kwargs): # pragma: no cover """Call this hook; no return value is expected. Args: -- cgit v1.2.3