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

main
lzwang 2022-09-03 01:32:52 +08:00
parent 5f68257acc
commit dc88acd439
1 changed files with 9 additions and 0 deletions

9
python/test_demo.py Normal file
View File

@ -0,0 +1,9 @@
import random
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}')
assert a > b, f"Whoops! a <= b"