3
0
Fork 0

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:
Lance Edgar 2023-11-20 22:29:11 -06:00
parent 34836b006d
commit d8252f029d
3 changed files with 63 additions and 11 deletions

View file

@ -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',