sisoe24 / nukeserversocket

Re-definition found for builtin function PYL-W0622
Anti-pattern
Major
1 occurrence in this check
Redefining built-in 'format'
116    ('test.py', 'hello world', '%n', '\n'),
117    ('path/test.py', 'hello world', '%d %f %F %t %n', '00:00:00 path/test.py test.py hello world \n'),
118])
119def test_formatting_placeholders(file: str, text: str, format: str, expected: str):120    with patch('nukeserversocket.editor_controller.datetime') as mock_datetime:
121        mock_datetime.now.return_value = datetime(2000, 1, 1, 0, 0, 0)
122        output = format_output(file, text, format)