mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-06-29 09:05:52 +00:00
add python unit test
This commit is contained in:
Executable
+21
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user