summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/test_paster.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-04 05:39:49 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-04 05:39:49 +0000
commit98ea383b580b77a2ff8cd81743ad0f0d90574547 (patch)
tree56d1d13ea1339fccffbcbba29224cd701ee6f6ee /repoze/bfg/tests/test_paster.py
parentc9b04a01e0b8f23b86d30e9ae1403a2964c34faa (diff)
downloadpyramid-98ea383b580b77a2ff8cd81743ad0f0d90574547.tar.gz
pyramid-98ea383b580b77a2ff8cd81743ad0f0d90574547.tar.bz2
pyramid-98ea383b580b77a2ff8cd81743ad0f0d90574547.zip
- The ``bfgshell`` command did not function properly; it was still
expecting to be able to call the root factory with a bare ``environ`` rather than a request object. - The ``repoze.bfg.scripting.get_app`` function now expects a ``request`` object as its second argument rather than an ``environ``.
Diffstat (limited to 'repoze/bfg/tests/test_paster.py')
-rw-r--r--repoze/bfg/tests/test_paster.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/repoze/bfg/tests/test_paster.py b/repoze/bfg/tests/test_paster.py
index 7752e1684..d9cbefb5e 100644
--- a/repoze/bfg/tests/test_paster.py
+++ b/repoze/bfg/tests/test_paster.py
@@ -27,7 +27,7 @@ class TestBFGShellCommand(unittest.TestCase):
self.assertEqual(len(app.threadlocal_manager.pushed), 1)
pushed = app.threadlocal_manager.pushed[0]
self.assertEqual(pushed['registry'], dummy_registry)
- self.assertEqual(pushed['request'], None)
+ self.assertEqual(pushed['request'].environ, {})
self.assertEqual(interact.local, {'root':dummy_root})
self.failUnless(interact.banner)
self.assertEqual(len(app.threadlocal_manager.popped), 1)
@@ -51,7 +51,7 @@ class TestBFGShellCommand(unittest.TestCase):
self.assertEqual(len(app.threadlocal_manager.pushed), 1)
pushed = app.threadlocal_manager.pushed[0]
self.assertEqual(pushed['registry'], dummy_registry)
- self.assertEqual(pushed['request'], None)
+ self.assertEqual(pushed['request'].environ, {})
self.assertEqual(dummy_shell_factory.shell.local_ns,{'root':dummy_root})
self.assertEqual(dummy_shell_factory.shell.global_ns, {})
self.failUnless('\n\n' in dummy_shell_factory.shell.IP.BANNER)