Reformat code with black and isort.

This commit is contained in:
Felix Fontein
2025-10-06 18:34:59 +02:00
parent f45232635c
commit d65d37e9e9
132 changed files with 17581 additions and 14729 deletions
@@ -2,20 +2,26 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import (absolute_import, division, print_function)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import pytest
from ansible_collections.community.docker.plugins.modules.docker_image_build import _quote_csv
from ansible_collections.community.docker.plugins.modules.docker_image_build import (
_quote_csv,
)
@pytest.mark.parametrize("input, expected", [
('', ''),
(' ', '" "'),
(',', '","'),
('"', '""""'),
('\rhello, "hi" !\n', '"\rhello, ""hi"" !\n"'),
])
@pytest.mark.parametrize(
"input, expected",
[
("", ""),
(" ", '" "'),
(",", '","'),
('"', '""""'),
('\rhello, "hi" !\n', '"\rhello, ""hi"" !\n"'),
],
)
def test__quote_csv(input, expected):
assert _quote_csv(input) == expected