summaryrefslogtreecommitdiff
path: root/tests/test_scripts/test_pserve.py
diff options
context:
space:
mode:
authoradroullier <arndt@nive.co>2023-10-19 17:40:31 +0200
committeradroullier <arndt@nive.co>2023-10-24 13:24:24 +0200
commitcbdc4b9ad9bdb20a4e0ad17f9d5af26147b771f9 (patch)
tree3f51eae7af402c8ae4a5b7b229ad8f2919954b9f /tests/test_scripts/test_pserve.py
parent3739a7790ba92c34098df3d804f27a1d8429f9fe (diff)
downloadpyramid-cbdc4b9ad9bdb20a4e0ad17f9d5af26147b771f9.tar.gz
pyramid-cbdc4b9ad9bdb20a4e0ad17f9d5af26147b771f9.tar.bz2
pyramid-cbdc4b9ad9bdb20a4e0ad17f9d5af26147b771f9.zip
Adding script name to 'global_config' during application setup as '__script__'
Diffstat (limited to 'tests/test_scripts/test_pserve.py')
-rw-r--r--tests/test_scripts/test_pserve.py2
1 files changed, 1 insertions, 1 deletions
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'