diff --git a/connect/cli/ccli.py b/connect/cli/ccli.py index ed2dc6f..29210b9 100644 --- a/connect/cli/ccli.py +++ b/connect/cli/ccli.py @@ -14,7 +14,7 @@ def main(): _set_stdout_unbuffered() - _ignore_openpyxl_warnings() + _suppress_warnings() try: import uvloop @@ -38,16 +38,13 @@ def main(): print('') -def _ignore_openpyxl_warnings(): +def _suppress_warnings(): """ - Ignore warning about DataValidation extension not supported. This is shown when a xlsx file - with unsupported data validation is opened (tipically after saving the file from Excel, which - uses some custom extension). - To avoid losing data validation, it should be re-created each time the file is saved by the cli. + Suppress all UserWarnings. """ import warnings - warnings.filterwarnings('ignore', category=UserWarning, module='openpyxl.worksheet._reader') + warnings.simplefilter('ignore', category=UserWarning) def _set_stdout_unbuffered(): # pragma: no cover diff --git a/tests/plugins/product/test_api.py b/tests/plugins/product/test_api.py index 8ff3407..32173f8 100644 --- a/tests/plugins/product/test_api.py +++ b/tests/plugins/product/test_api.py @@ -336,7 +336,6 @@ def test_delete_item( mocked_responses.add( method='DELETE', url='https://localhost/public/v1/products/PRD-276-377-545/items/PRD-276-377-545-0001', - json={}, status=204, )