From 080dea366e57db032e1928019f7ea599f11dabea Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 20 Jan 2019 13:20:52 +0100 Subject: Detailed output structure --- test/apitest/pzbs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/apitest/pzbs.py b/test/apitest/pzbs.py index 84488ff..18274ff 100644 --- a/test/apitest/pzbs.py +++ b/test/apitest/pzbs.py @@ -58,12 +58,12 @@ class PzbsCalculator(ApiTest): return params def get_response(self, text): - results = {} + results = {u'points': {}} content = bs(text, 'lxml') for row in content.select('table')[-1].select('tr'): cells = row.select('td') if cells[0].text.isdigit(): - results[cells[0].text] = int(cells[1].text) + results[u'points'][cells[0].text] = int(cells[1].text) elif cells[0].text == 'SUMA PKL': results[u'sum'] = int(cells[1].text) return results -- cgit v1.2.3