summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-08-06 16:50:51 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-08-06 16:50:51 +0000
commita6f95c72259f2890e4a9f9f11166310812173c68 (patch)
tree8041e9cf99d8e21dab3c75112ac7d1c041b629bd /tests
parente218c597c87205b239d5628dce1dc377fb83a0ea (diff)
downloadvyos-cloud-init-a6f95c72259f2890e4a9f9f11166310812173c68.tar.gz
vyos-cloud-init-a6f95c72259f2890e4a9f9f11166310812173c68.zip
tools: Add 'net-convert' subcommand command to 'cloud-init devel'.
Move the tools/net-convert.py to be exposed as part of 'cloud-init devel' subcommands. It can now be called like: $ cloud-init devel net-convert Or, if you just have checked out source (and no cli executable):   $ python3 -m cloudinit.cmd.devel.net_convert or   $ python3 -m cloudinit.cmd.main devel net-convert
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_cli.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unittests/test_cli.py b/tests/unittests/test_cli.py
index 0c0f427a..199d69b0 100644
--- a/tests/unittests/test_cli.py
+++ b/tests/unittests/test_cli.py
@@ -208,8 +208,7 @@ class TestCLI(test_helpers.FilesystemMockingTestCase):
for subcommand in expected_subcommands:
self.assertIn(subcommand, error)
- @mock.patch('cloudinit.config.schema.handle_schema_args')
- def test_wb_devel_schema_subcommand_parser(self, m_schema):
+ def test_wb_devel_schema_subcommand_parser(self):
"""The subcommand cloud-init schema calls the correct subparser."""
exit_code = self._call_main(['cloud-init', 'devel', 'schema'])
self.assertEqual(1, exit_code)