diff options
| author | Steve Piercy <web@stevepiercy.com> | 2016-12-11 22:37:47 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2016-12-13 17:40:20 -0800 |
| commit | 2d9c134245614026ec9528e5a9e78ba1d923f64b (patch) | |
| tree | 84fd5b01123fe8c05a29f29a67bef8eb1dbc81ea | |
| parent | 3c431019de4899e6a71cc5650ec52df65d56b2d7 (diff) | |
| download | pyramid-2d9c134245614026ec9528e5a9e78ba1d923f64b.tar.gz pyramid-2d9c134245614026ec9528e5a9e78ba1d923f64b.tar.bz2 pyramid-2d9c134245614026ec9528e5a9e78ba1d923f64b.zip | |
add an Args class, following pattern for OPtions; pshell tests now pass
| -rw-r--r-- | pyramid/tests/test_scripts/test_pshell.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyramid/tests/test_scripts/test_pshell.py b/pyramid/tests/test_scripts/test_pshell.py index 45d21015b..303964b2b 100644 --- a/pyramid/tests/test_scripts/test_pshell.py +++ b/pyramid/tests/test_scripts/test_pshell.py @@ -19,8 +19,10 @@ class TestPShellCommand(unittest.TestCase): self.config_factory = dummy.DummyConfigParserFactory() cmd.ConfigParser = self.config_factory if patch_args: - self.args = ('/foo/bar/myapp.ini#myapp',) - cmd.args = self.args + class Args(object): pass + self.args = Args() + self.args.config_uri = '/foo/bar/myapp.ini#myapp' + cmd.args.config_uri = self.args.config_uri if patch_options: class Options(object): pass self.options = Options() |
