测试Python UT
continuous-integration/drone/push Build is passing Details

main
lzwang 2022-09-03 09:16:10 +08:00
parent 1d810f82ff
commit 451c50150d
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ steps:
- pwd
- ls -la
- python ./python/hello.py
- pytest ./python/test_demo.py
- python ./python/test_demo.py
- name: "CI失败 微信推送"

View File

@ -5,5 +5,5 @@ from loguru import logger as log
def test_random_number():
a = 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"