Fix regular expression for duration in tests

This commit is contained in:
Dave Hunt 2017-09-19 09:22:16 +01:00
parent 7254149a5c
commit e7b1f6e4d3
No known key found for this signature in database
GPG Key ID: EA962DBFE7ABAD7B
1 changed files with 1 additions and 1 deletions

View File

@ -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