Unverified Commit 52eb62a9 authored by Khanh Ngo's avatar Khanh Ngo
Browse files

Fix unit tests

The python float number formatting causes unit tests failed
parent d497fdee
......@@ -50,8 +50,9 @@ def fetch_remote(remote_url,
timeout=timeout,
data=data,
params=params)
logging.debug('Querying remote server "{0}" ({1}) finished with code {2} (took {3:.3f}s)'.format(
remote_url, method, r.status_code, r.elapsed.total_seconds()))
logging.debug(
'Querying remote server "{0}" ({1}) finished with code {2} (took {3}s)'
.format(remote_url, method, r.status_code, r.elapsed.total_seconds()))
try:
if r.status_code not in (200, 201, 204, 400, 409, 422):
r.raise_for_status()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment