Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 0d0577ef authored by Ryan Herbert's avatar Ryan Herbert

tests/controllers/tag.py pass correct request variable

controller now takes "keys" variable rather than "group_ids"
See #3065
parent 369fb9a2
......@@ -37,12 +37,12 @@ class TagController(unittest.TestCase):
resp = auto_complete()
self.assertNotEqual(resp.find("missing group ids"), -1, "auto_complete did not fail correctly")
request.vars["group_ids"] = "[]"
request.vars["keys"] = "[]"
resp = auto_complete()
self.assertEqual(resp.find("missing group ids"), -1, "auto_complete failed to detect group_ids param")
self.assertEqual(resp, "{}", "auto_complete returned an unexpected response")
request.vars["group_ids"] = "[%d,%d]" % (unique_group, fake_group_id)
request.vars["keys"] = "[%d,%d]" % (unique_group, fake_group_id)
resp = auto_complete()
json_resp = json.loads(resp)
self.assertTrue(json_resp.has_key(str(unique_group)), "missing tag for unique_group: %s" % unique_group)
......
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