diff options
author | emkael <emkael@tlen.pl> | 2019-01-20 13:20:52 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-01-20 13:20:52 +0100 |
commit | 080dea366e57db032e1928019f7ea599f11dabea (patch) | |
tree | 4c5dcc0b577521d842ee65f5cd9ee96487a41ce8 /test/apitest/pzbs.py | |
parent | 8227f1561781e8ed1b3acca140bb611559e25a98 (diff) |
Detailed output structure
Diffstat (limited to 'test/apitest/pzbs.py')
-rw-r--r-- | test/apitest/pzbs.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |