Created initial example
这个提交包含在:
父节点
9843b42f80
当前提交
6fa550c0a3
12
.drone.yml
普通文件
12
.drone.yml
普通文件
@ -0,0 +1,12 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: test
|
||||||
|
image: python
|
||||||
|
commands:
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- pytest
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
0
requirements.txt
普通文件
0
requirements.txt
普通文件
7
test_good.py
普通文件
7
test_good.py
普通文件
@ -0,0 +1,7 @@
|
|||||||
|
# Adapted from the test_sample.py example in the pytest documentation
|
||||||
|
|
||||||
|
def inc(x):
|
||||||
|
return x + 1
|
||||||
|
|
||||||
|
def test_answer():
|
||||||
|
assert inc(3) == 4
|
正在加载...
x
在新工单中引用
屏蔽一个用户