diff options
| author | Michael Merickel <michael@merickel.org> | 2018-10-15 02:42:09 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2018-10-15 09:24:07 -0500 |
| commit | 10ddb6f08592c2740b966e98a6f98a5b83af1896 (patch) | |
| tree | 2e90443b3d8503ac722aa22f52f18f5108498560 /tests/test_config/test_factories.py | |
| parent | 4d838f06d0e6d27e34b766fc5c34a8283ff31b38 (diff) | |
| download | pyramid-10ddb6f08592c2740b966e98a6f98a5b83af1896.tar.gz pyramid-10ddb6f08592c2740b966e98a6f98a5b83af1896.tar.bz2 pyramid-10ddb6f08592c2740b966e98a6f98a5b83af1896.zip | |
fix lint on tests
Diffstat (limited to 'tests/test_config/test_factories.py')
| -rw-r--r-- | tests/test_config/test_factories.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/test_config/test_factories.py b/tests/test_config/test_factories.py index 325ba52f3..c03d3f68b 100644 --- a/tests/test_config/test_factories.py +++ b/tests/test_config/test_factories.py @@ -114,7 +114,7 @@ class TestFactoriesMixin(unittest.TestCase): config = self._makeOne(autocommit=True) - def foo(self): + def foo(self): # pragma: no cover pass config.add_request_method(foo) @@ -126,10 +126,10 @@ class TestFactoriesMixin(unittest.TestCase): config = self._makeOne() - def foo(self): + def foo(self): # pragma: no cover pass - def bar(self): + def bar(self): # pragma: no cover pass config.add_request_method(foo, name='bar') @@ -149,7 +149,7 @@ class TestFactoriesMixin(unittest.TestCase): config = self._makeOne() - def bar(self): + def bar(self): # pragma: no cover pass config.add_request_method(name='foo') @@ -161,13 +161,12 @@ class TestFactoriesMixin(unittest.TestCase): self.assertRaises(AttributeError, config.add_request_method) def test_add_request_method_with_text_type_name(self): - from pyramid.interfaces import IRequestExtensions from pyramid.compat import text_, PY2 from pyramid.exceptions import ConfigurationError config = self._makeOne(autocommit=True) - def boomshaka(r): + def boomshaka(r): # pragma: no cover pass def get_bad_name(): @@ -185,7 +184,7 @@ class TestFactoriesMixin(unittest.TestCase): config = self._makeOne(autocommit=True) - def dummy_policy(environ, router): + def dummy_policy(environ, router): # pragma: no cover pass config.set_execution_policy(dummy_policy) |
