Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions connect/cli/ccli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

def main():
_set_stdout_unbuffered()
_ignore_openpyxl_warnings()
_suppress_warnings()
try:
import uvloop

Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/plugins/product/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down