Skip to content

Commit e8daa95

Browse files
authored
Merge pull request #242 from cloudblue/LITE-33302-bump-python-version
LITE-33302 Update suppress warning and remove json data on delete
2 parents 6ec2d4f + 82461b6 commit e8daa95

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

connect/cli/ccli.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
def main():
1616
_set_stdout_unbuffered()
17-
_ignore_openpyxl_warnings()
17+
_suppress_warnings()
1818
try:
1919
import uvloop
2020

@@ -38,16 +38,13 @@ def main():
3838
print('')
3939

4040

41-
def _ignore_openpyxl_warnings():
41+
def _suppress_warnings():
4242
"""
43-
Ignore warning about DataValidation extension not supported. This is shown when a xlsx file
44-
with unsupported data validation is opened (tipically after saving the file from Excel, which
45-
uses some custom extension).
46-
To avoid losing data validation, it should be re-created each time the file is saved by the cli.
43+
Suppress all UserWarnings.
4744
"""
4845
import warnings
4946

50-
warnings.filterwarnings('ignore', category=UserWarning, module='openpyxl.worksheet._reader')
47+
warnings.simplefilter('ignore', category=UserWarning)
5148

5249

5350
def _set_stdout_unbuffered(): # pragma: no cover

tests/plugins/product/test_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ def test_delete_item(
336336
mocked_responses.add(
337337
method='DELETE',
338338
url='https://localhost/public/v1/products/PRD-276-377-545/items/PRD-276-377-545-0001',
339-
json={},
340339
status=204,
341340
)
342341

0 commit comments

Comments
 (0)