summaryrefslogtreecommitdiffstats
path: root/tests/errors
Commit message (Collapse)AuthorAgeFilesLines
* Auto-generated output from python-blackThanh Ha2019-09-091-18/+21
| | | | | | | | | Please review the following patch containing the code changes in the repo. This patch is a transition patch and is the auto-generated output of the python-black tool. Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Refactor base test classes inheritance for reuseDarragh Bailey2016-09-141-4/+3
| | | | | | | | | | | Refactor base test class inheritance to allow for BaseTest class to be reused without needing to also import the TestCase class everywhere in order to avoid having the common test function executed on base classes. This makes it easier to build base testing classes and then simplifies the subclassing of these for actual tests. Change-Id: I89809e8082469f814f245db4a9ab7658aac8a405
* Reorder imports to match hacking guidelinesDarragh Bailey2015-12-231-1/+2
| | | | | | | Ensure that the imports follow the standard OpenStack hacking guidelines. Change-Id: Iaa4326aef118ddfd807dd006934f1d9ca80a1cfa
* Capture logs with FakeLogging FixtureDarragh Bailey2015-09-301-2/+3
| | | | | | | Capture logs to attach them on exceptions to simplify the debugging of errors in tests when they occur. Change-Id: I5c1b5c306aba37789a8d41eabf65e0ac628af838
* Find module for exceptions raised from gen_xmlDarragh Bailey2015-07-141-2/+16
| | | | | | | | | | | | | | | Include ability to retrieve the necessary module information when exceptions are raised from within the gen_xml function for those modules that implement using this function directly instead of calling dispatch. Also to ensure that the exception itself won't raise an exception due to not being able to detect the correct calling module, ensure a default value noting it was not able to detect the module is always set first. Provide a fallback when the code can explicitly specify the module as the source component of the exception for cases where it may not be possible to autodetect. Change-Id: I3f72fe5f05a5e1f40a089e1f828dd295501bd9c7
* Add InvalidAttributeError and MissingAttributeError.Wayne2015-04-212-0/+67
The point of this patch is to begin promoting a more consistent approach to producing configuration error messages. Change-Id: I5cb79c05d791091694731f2034d9205f7eeb76b4