summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradroullier <arndt@nive.co>2023-10-24 14:34:21 +0200
committeradroullier <arndt@nive.co>2023-10-24 14:34:21 +0200
commitcaa712662d79005854b8bb5870f5cbe2da7f3029 (patch)
tree5dd7aa7cca49059e0674f60f97083ad942a2cedf
parent9d6f5d4a2467829deba7580d2f161473095a9941 (diff)
downloadpyramid-caa712662d79005854b8bb5870f5cbe2da7f3029.tar.gz
pyramid-caa712662d79005854b8bb5870f5cbe2da7f3029.tar.bz2
pyramid-caa712662d79005854b8bb5870f5cbe2da7f3029.zip
Fix 'tox -e lint' tests
-rw-r--r--tests/test_scripts/test_prequest.py5
-rw-r--r--tests/test_scripts/test_pserve.py3
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/test_scripts/test_prequest.py b/tests/test_scripts/test_prequest.py
index d13010d5b..4ff6cb34c 100644
--- a/tests/test_scripts/test_prequest.py
+++ b/tests/test_scripts/test_prequest.py
@@ -239,11 +239,10 @@ class TestPRequestCommand(unittest.TestCase):
self.assertEqual(self.loader.calls[0]['op'], 'logging')
def test_command_script_name(self):
- command = self._makeOne(['', '--method=GET', 'development.ini', '/'],)
+ command = self._makeOne(['', '--method=GET', 'development.ini', '/'])
command.run()
self.assertEqual(
- self.loader.calls[0]['defaults']['__script__'],
- 'prequest'
+ self.loader.calls[0]['defaults']['__script__'], 'prequest'
)
diff --git a/tests/test_scripts/test_pserve.py b/tests/test_scripts/test_pserve.py
index bdc225c5e..a56f25597 100644
--- a/tests/test_scripts/test_pserve.py
+++ b/tests/test_scripts/test_pserve.py
@@ -48,8 +48,7 @@ class TestPServeCommand(unittest.TestCase):
inst.run()
self.assertEqual(
- app.global_conf,
- {'a': '1', 'b': '2', '__script__': 'pserve'}
+ app.global_conf, {'a': '1', 'b': '2', '__script__': 'pserve'}
)
def test_original_ignore_files(self):