Fix regular expression for duration in tests
This commit is contained in:
parent
7254149a5c
commit
e7b1f6e4d3
|
@ -52,7 +52,7 @@ def assert_results(html, tests=1, duration=None, passed=1, skipped=0, failed=0,
|
|||
|
||||
# Asserts tests running duration
|
||||
if duration is not None:
|
||||
tests_duration = re.search('([\d,.])+ seconds', html)
|
||||
tests_duration = re.search('([\d,.]+) seconds', html)
|
||||
assert float(tests_duration.group(1)) >= float(duration)
|
||||
|
||||
# Asserts by outcome
|
||||
|
|
Loading…
Reference in New Issue