From cbdc4b9ad9bdb20a4e0ad17f9d5af26147b771f9 Mon Sep 17 00:00:00 2001 From: adroullier Date: Thu, 19 Oct 2023 17:40:31 +0200 Subject: Adding script name to 'global_config' during application setup as '__script__' --- tests/test_scripts/test_pserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_scripts/test_pserve.py') diff --git a/tests/test_scripts/test_pserve.py b/tests/test_scripts/test_pserve.py index 5e5c28c7b..0b010692a 100644 --- a/tests/test_scripts/test_pserve.py +++ b/tests/test_scripts/test_pserve.py @@ -47,7 +47,7 @@ class TestPServeCommand(unittest.TestCase): self.loader.server = lambda x: x inst.run() - self.assertEqual(app.global_conf, {'a': '1', 'b': '2'}) + self.assertEqual(app.global_conf, {'a': '1', 'b': '2', '__script__': 'pserve'}) def test_original_ignore_files(self): msg = 'A change to "ignore_files" was detected' -- cgit v1.2.3 From 74d675cea04335a17600a65bee8e0b0c5ca058a7 Mon Sep 17 00:00:00 2001 From: adroullier Date: Tue, 24 Oct 2023 14:01:24 +0200 Subject: Fix 'tox -e lint' tests --- tests/test_scripts/test_pserve.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/test_scripts/test_pserve.py') diff --git a/tests/test_scripts/test_pserve.py b/tests/test_scripts/test_pserve.py index 0b010692a..bdc225c5e 100644 --- a/tests/test_scripts/test_pserve.py +++ b/tests/test_scripts/test_pserve.py @@ -47,7 +47,10 @@ class TestPServeCommand(unittest.TestCase): self.loader.server = lambda x: x inst.run() - self.assertEqual(app.global_conf, {'a': '1', 'b': '2', '__script__': 'pserve'}) + self.assertEqual( + app.global_conf, + {'a': '1', 'b': '2', '__script__': 'pserve'} + ) def test_original_ignore_files(self): msg = 'A change to "ignore_files" was detected' -- cgit v1.2.3 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_pserve.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/test_scripts/test_pserve.py') 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