We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa1e14f commit bb14500Copy full SHA for bb14500
tests/test_direct_invocations.py
@@ -63,3 +63,26 @@ def test_check_command_line():
63
64
os.remove(request_file)
65
assert p.exitcode == 0
66
+
67
68
+def test_check_command_line_error():
69
+ request = json.dumps({})
70
+ request_file = 'check_command_line_event.json'
71
+ with open(request_file, "w") as f:
72
+ f.write(request)
73
74
+ args = argparse.Namespace(event=request_file,
75
+ file='tests/test_direct_invocations.py',
76
+ function='my_failing_lambda_function',
77
+ timeout=1,
78
+ environment_variables='',
79
+ library=None,
80
+ version_name='',
81
+ arn_string=''
82
+ )
83
+ p = Process(target=lambda_run, args=(args,))
84
+ p.start()
85
+ p.join()
86
87
+ os.remove(request_file)
88
+ assert p.exitcode == 1
0 commit comments