summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/apitest/pzbs.py4
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