Add filter for signed test results and related UI

With this patch users can list their own test results.

Change-Id: Ie2d944924f6ae966a13d0ca9908810c315ade5ab
This commit is contained in:
sslypushenko
2015-07-22 20:22:53 +03:00
parent 217cadd608
commit 2b89f65ad4
21 changed files with 178 additions and 136 deletions

View File

@@ -134,7 +134,7 @@ class ResultsControllerTestCase(base.BaseTestCase):
'url': self.test_results_url % 'fake_test_id'})
self.assertEqual(mock_response.status, 201)
mock_store_results.assert_called_once_with(
{'answer': 42, 'metadata': {'public_key': 'fake-key'}}
{'answer': 42, 'metadata': {const.PUBLIC_KEY: 'fake-key'}}
)
@mock.patch('pecan.abort')
@@ -216,6 +216,7 @@ class ResultsControllerTestCase(base.BaseTestCase):
const.START_DATE,
const.END_DATE,
const.CPID,
const.SIGNED
]
page_number = 1
total_pages_number = 10