summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2016-12-11 03:17:38 -0800
committerSteve Piercy <web@stevepiercy.com>2016-12-13 17:40:19 -0800
commit53937c4083a06479050400f96b4eae2f0795c064 (patch)
tree8a4dcb4f17997e1130fd4c27131257d14132e18d
parent0a3a208cb1bbe21c8e350f83a47bade71cdb8f4f (diff)
downloadpyramid-53937c4083a06479050400f96b4eae2f0795c064.tar.gz
pyramid-53937c4083a06479050400f96b4eae2f0795c064.tar.bz2
pyramid-53937c4083a06479050400f96b4eae2f0795c064.zip
change command.options to command.args
-rw-r--r--pyramid/tests/test_scripts/test_pshell.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/pyramid/tests/test_scripts/test_pshell.py b/pyramid/tests/test_scripts/test_pshell.py
index f98ded6d3..45d21015b 100644
--- a/pyramid/tests/test_scripts/test_pshell.py
+++ b/pyramid/tests/test_scripts/test_pshell.py
@@ -71,7 +71,7 @@ class TestPShellCommand(unittest.TestCase):
self._makeEntryPoints(command, {})
command.default_runner = shell
- command.options.python_shell = 'unknown_python_shell'
+ command.args.python_shell = 'unknown_python_shell'
result = command.run()
self.assertEqual(result, 1)
self.assertEqual(
@@ -95,7 +95,7 @@ class TestPShellCommand(unittest.TestCase):
}
)
- command.options.python_shell = 'ipython'
+ command.args.python_shell = 'ipython'
command.run()
self.assertTrue(self.config_factory.parser)
@@ -140,7 +140,7 @@ class TestPShellCommand(unittest.TestCase):
shell = command.make_shell()
self.assertEqual(shell, dshell)
- command.options.python_shell = 'ipython'
+ command.args.python_shell = 'ipython'
self.assertRaises(ValueError, command.make_shell)
self._makeEntryPoints(
@@ -152,15 +152,15 @@ class TestPShellCommand(unittest.TestCase):
}
)
- command.options.python_shell = 'ipython'
+ command.args.python_shell = 'ipython'
shell = command.make_shell()
self.assertEqual(shell, ipshell)
- command.options.python_shell = 'bpython'
+ command.args.python_shell = 'bpython'
shell = command.make_shell()
self.assertEqual(shell, bpshell)
- command.options.python_shell = 'python'
+ command.args.python_shell = 'python'
shell = command.make_shell()
self.assertEqual(shell, dshell)
@@ -291,7 +291,7 @@ class TestPShellCommand(unittest.TestCase):
model = dummy.Dummy()
self.config_factory.items = [('setup', 'abc'),
('m', model)]
- command.options.setup = setup
+ command.args.setup = setup
shell = dummy.DummyShell()
command.run(shell)
self.assertTrue(self.config_factory.parser)
@@ -365,7 +365,7 @@ class TestPShellCommand(unittest.TestCase):
}
)
- command.options.list = True
+ command.args.list = True
result = command.run()
self.assertEqual(result, 0)
self.assertEqual(out_calls, [