Merge "[Reports] Remove class OutputStackedAreaDeprecatedChart"

This commit is contained in:
Jenkins 2016-01-09 02:29:51 +00:00 committed by Gerrit Code Review
commit 240c9d6a06
2 changed files with 0 additions and 22 deletions

View File

@ -108,15 +108,6 @@ class AtomicStackedAreaChart(Chart):
return atomics
# TODO(amaretskiy): remove this class after report switched
# to classes based on OutputChart for output data
class OutputStackedAreaDeprecatedChart(Chart):
def _map_iteration_values(self, iteration):
return [(name, iteration["scenario_output"]["data"].get(name, 0))
for name in self._workload_info["output_names"]]
class AvgChart(Chart):
"""Base class for charts with average results."""

View File

@ -134,19 +134,6 @@ class AtomicStackedAreaChartTestCase(test.TestCase):
self.assertEqual(expected, sorted(chart.render()))
class OutputStackedAreaDeprecatedChartTestCase(test.TestCase):
def test_add_iteration_and_render(self):
chart = charts.OutputStackedAreaDeprecatedChart(
{"iterations_count": 3, "output_names": ["foo", "bar"]}, 10)
self.assertIsInstance(chart, charts.Chart)
[chart.add_iteration({"scenario_output": {"data": x}})
for x in ({"foo": 1.1, "bar": 1.2}, {"foo": 1.3}, {"bar": 1.4})]
expected = [("bar", [[1, 1.2], [2, 0], [3, 1.4]]),
("foo", [[1, 1.1], [2, 1.3], [3, 0]])]
self.assertEqual(expected, sorted(chart.render()))
class AvgChartTestCase(test.TestCase):
class AvgChart(charts.AvgChart):