From 732e49c6547c181de8cc56e93b30dc399e87091d Mon Sep 17 00:00:00 2001 From: "Kay-Uwe (Kiwi) Lorenz" Date: Sun, 7 Mar 2021 15:28:52 +0100 Subject: chore: make lint happy --- gitlab/tests/test_config.py | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/gitlab/tests/test_config.py b/gitlab/tests/test_config.py index 60c8853..58ccbb0 100644 --- a/gitlab/tests/test_config.py +++ b/gitlab/tests/test_config.py @@ -197,21 +197,30 @@ def test_valid_data(m_open, path_exists): @mock.patch("os.path.exists") @mock.patch("builtins.open") def test_data_from_helper(m_open, path_exists, tmp_path): - helper = (tmp_path / "helper.sh") - helper.write_text(dedent("""\ - #!/bin/sh - echo "secret" - """)) + helper = tmp_path / "helper.sh" + helper.write_text( + dedent( + """\ + #!/bin/sh + echo "secret" + """ + ) + ) helper.chmod(0o755) - fd = io.StringIO(dedent("""\ - [global] - default = helper - - [helper] - url = https://helper.url - oauth_token = helper: %s - """) % helper) + fd = io.StringIO( + dedent( + """\ + [global] + default = helper + + [helper] + url = https://helper.url + oauth_token = helper: %s + """ + ) + % helper + ) fd.close = mock.Mock(return_value=None) m_open.return_value = fd -- cgit v1.2.1