Browse Source

publish muk_utils - 12.0

pull/30/head
MuK IT GmbH 6 years ago
parent
commit
e2802f8492
  1. 2
      muk_utils/__manifest__.py
  2. 3
      muk_utils/tests/common.py

2
muk_utils/__manifest__.py

@ -19,7 +19,7 @@
{
"name": "MuK Utils",
"summary": """Utility Features""",
"version": '12.0.1.6.21',
"version": '12.0.1.6.22',
"category": 'Extra Tools',
"license": "AGPL-3",
"author": "MuK IT",

3
muk_utils/tests/common.py

@ -135,7 +135,8 @@ def track_function(max_query_count=None, max_query_time=None, max_time=None, ret
raise AssertionError("Queries took longer than %.3fs" % max_query_time)
if max_time and time_taken > max_time:
raise AssertionError("Function took longer than %.3fs" % max_time)
_logger.info(message)
if not return_tracking:
_logger.info(message)
if return_tracking:
return result, tracking_parameters
return result

Loading…
Cancel
Save