add python unit test

This commit is contained in:
Hongzhan Chen
2019-07-29 23:14:17 -04:00
committed by qzheng527
parent f72b8a7aaf
commit 728cafb488
4 changed files with 394 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bats
# *-*- Mode: sh; c-basic-offset: 8; indent-tabs-mode: nil -*-*
load ../utils
@test "python3 string" {
docker run --rm -v "$PWD":/src -w /src clearlinux/python python3 testcase/string3.py
}
@test "python3 list" {
docker run --rm -v "$PWD":/src -w /src clearlinux/python python3 testcase/list3.py
}
@test "python3 count" {
docker run --rm -v "$PWD":/src -w /src clearlinux/python python3 testcase/wordcount3.py --count testcase/string3.py
}
@test "python3-basic pip3 check" {
docker run --rm -v "$PWD":/src -w /src clearlinux/python pip3 check
}