Allow specifying config object for Command constructor
might as well re-use config if available..not sure how often this will happen in practice
This commit is contained in:
parent
34836b006d
commit
d8252f029d
3 changed files with 63 additions and 11 deletions
|
@ -15,6 +15,7 @@ class TestCommand(TestCase):
|
|||
cmd = base.Command()
|
||||
self.assertEqual(cmd.name, 'wutta')
|
||||
self.assertIn('setup', cmd.subcommands)
|
||||
self.assertEqual(str(cmd), 'wutta')
|
||||
|
||||
def test_sorted_subcommands(self):
|
||||
cmd = base.Command(subcommands={'foo': 'FooSubcommand',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue