Fixed bug of test caption in report

Reasons:
    - A caption of OSTF test in report is not easy-to-read
Changes:
    - Caption for OSTF test will be set from its docstring
    - Fixed test_server.py due to changes in captioning

Change-Id: I37e32e817ccf55db0fb9cd0a93ec4297f68ed4f1
Closes-Bug: #1454636
This commit is contained in:
Oleksandr Kyrylchuk 2015-05-13 17:49:10 +03:00
parent 9ac1d34223
commit 0ed242f5dc
2 changed files with 0 additions and 2 deletions

View File

@ -196,7 +196,6 @@ class TestServer(testtools.TestCase):
test = self.plugin.tests[0]
rv = self.app.post(
'/v1/plugins/fake/suites/tests/%s' % test).data
self.plugin.test.description['test'] = test
check = {
u'plugin': {u'name': self.plugin.name,
u'test': test,

View File

@ -156,7 +156,6 @@ class Tests(BaseTests):
message="Test %s not found." % test)
reports = plugin.run_test(test)
report = [r.description for r in reports]
report[0]['test'] = test
return {"plugin": {"name": plugin.name,
"test": test,
"report": report}}