summaryrefslogtreecommitdiff
path: root/tests/test_scripts/test_ptweens.py
diff options
context:
space:
mode:
authorMichael Merickel <github@m.merickel.org>2018-10-15 09:56:42 -0500
committerGitHub <noreply@github.com>2018-10-15 09:56:42 -0500
commitbda1306749c62ef4f11cfe567ed7d56c8ad94240 (patch)
tree304c696c105ca15bbe0f13d96c79524974de768b /tests/test_scripts/test_ptweens.py
parent81576ee51564c49d5ff3c1c07f214f22a8438231 (diff)
parenta54bc1ccac17625991e26eb5d4577f893803c683 (diff)
downloadpyramid-bda1306749c62ef4f11cfe567ed7d56c8ad94240.tar.gz
pyramid-bda1306749c62ef4f11cfe567ed7d56c8ad94240.tar.bz2
pyramid-bda1306749c62ef4f11cfe567ed7d56c8ad94240.zip
Merge pull request #3388 from mmerickel/black
format source using black
Diffstat (limited to 'tests/test_scripts/test_ptweens.py')
-rw-r--r--tests/test_scripts/test_ptweens.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/test_scripts/test_ptweens.py b/tests/test_scripts/test_ptweens.py
index 4ad015249..ee50887f6 100644
--- a/tests/test_scripts/test_ptweens.py
+++ b/tests/test_scripts/test_ptweens.py
@@ -1,9 +1,11 @@
import unittest
from . import dummy
+
class TestPTweensCommand(unittest.TestCase):
def _getTargetClass(self):
from pyramid.scripts.ptweens import PTweensCommand
+
return PTweensCommand
def _makeOne(self):
@@ -31,9 +33,10 @@ class TestPTweensCommand(unittest.TestCase):
result = command.run()
self.assertEqual(result, 0)
self.assertEqual(
- L[0],
- '"pyramid.tweens" config value NOT set (implicitly ordered tweens '
- 'used)')
+ L[0],
+ '"pyramid.tweens" config value NOT set (implicitly ordered tweens '
+ 'used)',
+ )
def test_command_implicit_and_explicit_tweens(self):
command = self._makeOne()
@@ -44,17 +47,21 @@ class TestPTweensCommand(unittest.TestCase):
result = command.run()
self.assertEqual(result, 0)
self.assertEqual(
- L[0],
- '"pyramid.tweens" config value set (explicitly ordered tweens used)')
+ L[0],
+ '"pyramid.tweens" config value set (explicitly ordered tweens '
+ 'used)',
+ )
def test__get_tweens(self):
command = self._makeOne()
registry = dummy.DummyRegistry()
self.assertEqual(command._get_tweens(registry), None)
+
class Test_main(unittest.TestCase):
def _callFUT(self, argv):
from pyramid.scripts.ptweens import main
+
return main(argv, quiet=True)
def test_it(self):