From dc88acd43947af6d753ab0fcdd07bb9b85b91d10 Mon Sep 17 00:00:00 2001 From: lzwang Date: Sat, 3 Sep 2022 01:32:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95Python=20UT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/test_demo.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 python/test_demo.py diff --git a/python/test_demo.py b/python/test_demo.py new file mode 100644 index 0000000..8a23583 --- /dev/null +++ b/python/test_demo.py @@ -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"