测试Python UT
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1d810f82ff
commit
451c50150d
|
@ -24,7 +24,7 @@ steps:
|
||||||
- pwd
|
- pwd
|
||||||
- ls -la
|
- ls -la
|
||||||
- python ./python/hello.py
|
- python ./python/hello.py
|
||||||
- pytest ./python/test_demo.py
|
- python ./python/test_demo.py
|
||||||
|
|
||||||
|
|
||||||
- name: "CI失败 微信推送"
|
- name: "CI失败 微信推送"
|
||||||
|
|
|
@ -5,5 +5,5 @@ from loguru import logger as log
|
||||||
def test_random_number():
|
def test_random_number():
|
||||||
a = random.randint(1, 10)
|
a = random.randint(1, 10)
|
||||||
b = random.randint(1, 10)
|
b = random.randint(1, 10)
|
||||||
log.info(f'Random number: a={a}, b={b}')
|
log.debug(f'Random number: a={a}, b={b}')
|
||||||
assert a > b, f"Whoops! a <= b"
|
assert a > b, f"Whoops! a <= b"
|
||||||
|
|
Loading…
Reference in New Issue