Created initial example
Esse commit está contido em:
pai
9843b42f80
commit
6fa550c0a3
12
.drone.yml
Arquivo normal
12
.drone.yml
Arquivo normal
@ -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
Arquivo normal
0
requirements.txt
Arquivo normal
7
test_good.py
Arquivo normal
7
test_good.py
Arquivo normal
@ -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
|
Carregando…
x
Referência em uma nova issue
Block a user