(self)
| 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 = {} |
nothing calls this directly
no test coverage detected