BigW Consortium Gitlab

Commit cde2a133 by Marc Abramowitz

Add a new test, test_parameter_type_long, which demonstrates that passing…

Add a new test, test_parameter_type_long, which demonstrates that passing parameters of type long when an int is expected, causes an exception. ERROR: test_parameter_type_long (test.test_core.CoreTests) ... ValueError: Bad value for parameter limit of type 'int' - 5
parent 415e202d
......@@ -157,6 +157,11 @@ class CoreTests(Test):
self.assertEqual(self.last_query()['limit'], ['5'])
def test_parameter_type_long(self):
self.api.testMethod(test_id=1L, limit=5L)
self.assertEqual(self.last_query()['limit'], ['5'])
def bad_value_msg(self, name, t, v):
return "Bad value for parameter %s of type '%s' - %s" % (name, t, v)
......
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