diff --git a/emulambda/__init__.py b/emulambda/__init__.py index 4a5f452..9ce2a1f 100644 --- a/emulambda/__init__.py +++ b/emulambda/__init__.py @@ -185,7 +185,7 @@ def emit_to_function(verbose, stream, func): print( "\nObject %i %s" % (i, line.rstrip()[:65] + ('...' if len(line) > 65 else ''))) if verbose else None i += 1 - print(str(func(json.loads(line), None))) + func(json.loads(line), None) except ValueError as e: print("There was a problem parsing your JSON event.") print(e.message) diff --git a/example/__init__.py b/example/__init__.py index a6459f2..6f93e5c 100644 --- a/example/__init__.py +++ b/example/__init__.py @@ -11,4 +11,4 @@ def very_inefficient(recursion, accumulator): def example_handler(event, context): result = very_inefficient(512, '') - return event['key1']#echo first key value \ No newline at end of file + return event['key1'] # echo first key value \ No newline at end of file diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..9b5f84b --- /dev/null +++ b/test.sh @@ -0,0 +1 @@ +clear; nosetests --with-coverage --cover-package emulambda