Skip to content

Commit dd2c0e5

Browse files
committed
Add python test
1 parent 8d7395a commit dd2c0e5

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ docker run -i --rm \
77
-v "$PWD"/../layer:/opt \
88
lambci/lambda:nodejs10.x \
99
index.handler
10+
11+
docker run -i --rm \
12+
-v "$PWD":/var/task \
13+
-v "$PWD"/../layer:/opt \
14+
lambci/lambda:python3.7 \
15+
main.handler

test/main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import os
2+
3+
def handler (event, context):
4+
os.system("gm version")
5+
os.system("gm convert -list formats")
6+
os.system("gm convert -list fonts")
7+
return os.system('gm convert -font Courier -fill white -draw "rotate 20 text 10,10 Hello-World" image1.jpg /tmp/gm-test-output.jpg')

0 commit comments

Comments
 (0)