From 0ffe79be0502a616abb19b13d1d02741c677b38e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 11 Sep 2012 01:24:35 -0400 Subject: coverage --- pyramid/tests/test_config/test_factories.py | 11 ----------- pyramid/tests/test_scripting.py | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/pyramid/tests/test_config/test_factories.py b/pyramid/tests/test_config/test_factories.py index cf3a9f8d9..e89fc077e 100644 --- a/pyramid/tests/test_config/test_factories.py +++ b/pyramid/tests/test_config/test_factories.py @@ -157,14 +157,3 @@ class TestFactoriesMixin(unittest.TestCase): self.assertRaises(AttributeError, config.add_request_method) -class DummyRequest(object): - extensions = None - - def __init__(self, registry): - self.registry = registry - - def _set_properties(self, properties): - if self.extensions is None: - self.extensions = [] - self.extensions.extend(properties) - diff --git a/pyramid/tests/test_scripting.py b/pyramid/tests/test_scripting.py index a27ff812f..4dab5cee5 100644 --- a/pyramid/tests/test_scripting.py +++ b/pyramid/tests/test_scripting.py @@ -150,7 +150,7 @@ class DummyRegistry(object): def __init__(self, utilities): self.utilities = utilities - def queryUtility(self, iface, default=None): + def queryUtility(self, iface, default=None): # pragma: no cover if self.utilities: return self.utilities.pop(0) return default -- cgit v1.2.3