summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2020-09-29 22:12:52 -0700
committerSteve Piercy <web@stevepiercy.com>2020-09-29 22:12:52 -0700
commit9925a6251886e3692215f3c8ea052dc9a0687d28 (patch)
treef5fa501fa21ce99a4ffd108fce525572eb0b7370 /tests
parent6116c6c8be01909724127b055be633c53c4782fc (diff)
downloadpyramid-9925a6251886e3692215f3c8ea052dc9a0687d28.tar.gz
pyramid-9925a6251886e3692215f3c8ea052dc9a0687d28.tar.bz2
pyramid-9925a6251886e3692215f3c8ea052dc9a0687d28.zip
Blackify for v20.8b1
Diffstat (limited to 'tests')
-rw-r--r--tests/test_path.py3
-rw-r--r--tests/test_testing.py4
-rw-r--r--tests/test_util.py4
3 files changed, 6 insertions, 5 deletions
diff --git a/tests/test_path.py b/tests/test_path.py
index f77e35638..479e12e40 100644
--- a/tests/test_path.py
+++ b/tests/test_path.py
@@ -655,8 +655,7 @@ class DummyPackageOrModule:
class DummyNamespacePackage:
- """Has no __file__ attribute.
- """
+ """Has no __file__ attribute."""
def __init__(self, real_package_or_module):
self.__name__ = real_package_or_module.__name__
diff --git a/tests/test_testing.py b/tests/test_testing.py
index 74c0ae639..8f912dbd7 100644
--- a/tests/test_testing.py
+++ b/tests/test_testing.py
@@ -300,7 +300,9 @@ class TestDummyRequest(unittest.TestCase):
class TestDummyTemplateRenderer(unittest.TestCase):
- def _getTargetClass(self,):
+ def _getTargetClass(
+ self,
+ ):
from pyramid.testing import DummyTemplateRenderer
return DummyTemplateRenderer
diff --git a/tests/test_util.py b/tests/test_util.py
index cb5fd8185..bf4c08988 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -137,7 +137,7 @@ class Test_InstancePropertyHelper(unittest.TestCase):
self.assertEqual(2, foo.x)
def test_reset_reify(self):
- """ This is questionable behavior, but may as well get notified
+ """This is questionable behavior, but may as well get notified
if it changes."""
foo = Dummy()
helper = self._getTargetClass()
@@ -333,7 +333,7 @@ class Test_InstancePropertyMixin(unittest.TestCase):
self.assertEqual(2, foo.x)
def test_reset_reify(self):
- """ This is questionable behavior, but may as well get notified
+ """This is questionable behavior, but may as well get notified
if it changes."""
foo = self._makeOne()
foo.set_property(lambda _: 1, name='x', reify=True)