mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
Fix unit tests
The python float number formatting causes unit tests failed
This commit is contained in:
parent
d497fdee8e
commit
52eb62a911
@ -50,8 +50,9 @@ def fetch_remote(remote_url,
|
|||||||
timeout=timeout,
|
timeout=timeout,
|
||||||
data=data,
|
data=data,
|
||||||
params=params)
|
params=params)
|
||||||
logging.debug('Querying remote server "{0}" ({1}) finished with code {2} (took {3:.3f}s)'.format(
|
logging.debug(
|
||||||
remote_url, method, r.status_code, r.elapsed.total_seconds()))
|
'Querying remote server "{0}" ({1}) finished with code {2} (took {3}s)'
|
||||||
|
.format(remote_url, method, r.status_code, r.elapsed.total_seconds()))
|
||||||
try:
|
try:
|
||||||
if r.status_code not in (200, 201, 204, 400, 409, 422):
|
if r.status_code not in (200, 201, 204, 400, 409, 422):
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
|
Loading…
Reference in New Issue
Block a user