summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler/test_handler_growpart.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2017-06-02 14:42:26 -0600
committerScott Moser <smoser@brickies.net>2017-06-02 16:49:05 -0400
commita62a94b4edd7c61a268350c84e43b0aa8f68b0c2 (patch)
tree852cd8c7a9512363f5c8d14c7bcf0fe5ecf3eb91 /tests/unittests/test_handler/test_handler_growpart.py
parent1cd4323b940408aa34dcaa01bd8a7ed43d9a966a (diff)
downloadvyos-cloud-init-a62a94b4edd7c61a268350c84e43b0aa8f68b0c2.tar.gz
vyos-cloud-init-a62a94b4edd7c61a268350c84e43b0aa8f68b0c2.zip
Tests: Skip jsonschema related unit tests when dependency is absent.
On some build environments we don't have python-jsonschema installed. Since this dependency is an optional runtime dependency, we can also make it an optional unit test dependency. Add a skip of related unittests when jsonschema is not present. Also, KeyError messages on CentOs don't have single quotes around the missing 'key-name'. Make our KeyError assertion a bit more flexible with the assertIn call. LP: #1695318
Diffstat (limited to 'tests/unittests/test_handler/test_handler_growpart.py')
0 files changed, 0 insertions, 0 deletions