Commit 993514ff authored by Ryan Herbert's avatar Ryan Herbert

tests/controllers/* add missing id request vars

some controllers were not passed ids, therefore they always returned
permission denied with the new permission check changes.
parent 12f8626b
......@@ -71,6 +71,7 @@ class ConfigController(unittest.TestCase):
def test3Edit(self):
request.vars["config_id"] = fake_config_id
resp = edit()
self.assertTrue(resp.has_key('message'), "edit() has returned an incomplete response")
......@@ -87,6 +88,7 @@ class ConfigController(unittest.TestCase):
def testConfirm(self):
request.vars["id"] = fake_config_id
resp = confirm()
self.assertTrue(resp.has_key('message'), "confirm() has returned an incomplete response")
......
......@@ -81,6 +81,7 @@ class FileController(unittest.TestCase):
def testEdit(self):
request.vars['patient_id'] = fake_patient_id
request.vars['id'] = fake_file_id
resp = edit()
self.assertTrue(resp.has_key('message'), "edit() has returned an incomplete response")
......
......@@ -60,6 +60,7 @@ class GroupController(unittest.TestCase):
def testConfirm(self):
request.vars['id'] = fake_group_id
resp = confirm()
self.assertTrue(resp.has_key('message'), "confirm() has returned an incomplete response")
......@@ -73,11 +74,13 @@ class GroupController(unittest.TestCase):
def testInfo(self):
request.vars['id'] = fake_group_id
resp = info()
self.assertTrue(resp.has_key('message'), "info() has returned an incomplete response")
def testPermission(self):
def testPermission(self):
request.vars['id'] = fake_group_id
resp = permission()
self.assertTrue(resp.has_key('message'), "permission() has returned an incomplete response")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment