Merge ~chad.smith/cloud-init:cleanup/test-failures-print-testname into cloud-init:master
Status: | Merged |
---|---|
Approved by: | Scott Moser |
Approved revision: | 461a98bd8f358ca01412ed2e1347b350087e4c03 |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~chad.smith/cloud-init:cleanup/test-failures-print-testname |
Merge into: | cloud-init:master |
Diff against target: |
22 lines (+4/-0) 1 file modified
cloudinit/tests/helpers.py (+4/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+354273@code.launchpad.net |
Commit message
tests: print failed testname instead of docstring upon failure
Description of the change
to validate:
Add a failed assertion to some test and run tox -e py27 tests/unittests
See the docstring of the test on master and the failed test name test_logger_
diff --git a/tests/
index cd6296d..6802ab5 100644
--- a/tests/
+++ b/tests/
@@ -29,6 +29,7 @@ class TestCloudInitLo
def test_logger_
"""Test that log message have timestamp in UTC (gmtime)"""
+ assert 0
# Log a message, extract the timestamp from the log entry
# convert to datetime, and compare to a utc timestamp before
That looks nifty, what does that look like in practice?