feat: support retry when test step failed

This commit is contained in:
duanchao.bill
2022-04-06 20:53:32 +08:00
committed by debugtalk
parent 5e40e3692d
commit 596e6673fe
9 changed files with 96 additions and 8 deletions

View File

@@ -23,3 +23,20 @@ def get_app_version():
def calculate_two_nums(a, b=1):
return [a + b, b - a]
def fake_rand_count():
"""
return 1 at first call
return 2 at second call
"""
l = []
def func():
l.append(1)
return len(l)
return func
fake_randnum = fake_rand_count()