MCPcopy Index your code
hub / github.com/zappa/Zappa / test_run_function

Method test_run_function

tests/test_handler.py:56–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 LambdaHandler.settings_name = None
55
56 def test_run_function(self):
57 self.assertIsNone(LambdaHandler.run_function(no_args, "e", "c"))
58 self.assertEqual(LambdaHandler.run_function(one_arg, "e", "c"), "e")
59 self.assertEqual(LambdaHandler.run_function(two_args, "e", "c"), ("e", "c"))
60 self.assertEqual(LambdaHandler.run_function(var_args, "e", "c"), ("e", "c"))
61 self.assertEqual(LambdaHandler.run_function(var_args_with_one, "e", "c"), ("e", "c"))
62
63 try:
64 LambdaHandler.run_function(unsupported, "e", "c")
65 self.fail("Exception expected")
66 except RuntimeError as e:
67 pass
68
69 def test_run_fuction_with_type_hint(self):
70 scope = {}

Callers

nothing calls this directly

Calls 1

run_functionMethod · 0.80

Tested by

no test coverage detected