Merge "Fixed bug of test caption in report"
This commit is contained in:
commit
fe5e8cf2f0
@ -196,7 +196,6 @@ class TestServer(testtools.TestCase):
|
|||||||
test = self.plugin.tests[0]
|
test = self.plugin.tests[0]
|
||||||
rv = self.app.post(
|
rv = self.app.post(
|
||||||
'/v1/plugins/fake/suites/tests/%s' % test).data
|
'/v1/plugins/fake/suites/tests/%s' % test).data
|
||||||
self.plugin.test.description['test'] = test
|
|
||||||
check = {
|
check = {
|
||||||
u'plugin': {u'name': self.plugin.name,
|
u'plugin': {u'name': self.plugin.name,
|
||||||
u'test': test,
|
u'test': test,
|
||||||
|
@ -156,7 +156,6 @@ class Tests(BaseTests):
|
|||||||
message="Test %s not found." % test)
|
message="Test %s not found." % test)
|
||||||
reports = plugin.run_test(test)
|
reports = plugin.run_test(test)
|
||||||
report = [r.description for r in reports]
|
report = [r.description for r in reports]
|
||||||
report[0]['test'] = test
|
|
||||||
return {"plugin": {"name": plugin.name,
|
return {"plugin": {"name": plugin.name,
|
||||||
"test": test,
|
"test": test,
|
||||||
"report": report}}
|
"report": report}}
|
||||||
|
Loading…
Reference in New Issue
Block a user