From caa712662d79005854b8bb5870f5cbe2da7f3029 Mon Sep 17 00:00:00 2001 From: adroullier Date: Tue, 24 Oct 2023 14:34:21 +0200 Subject: Fix 'tox -e lint' tests --- tests/test_scripts/test_prequest.py | 5 ++--- tests/test_scripts/test_pserve.py | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'tests') 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): -- cgit v1.2.3