summaryrefslogtreecommitdiff
path: root/gitlab/tests/test_config.py
diff options
context:
space:
mode:
authorKay-Uwe (Kiwi) Lorenz <kiwi@moduleworks.com>2021-03-07 15:28:52 +0100
committerKay-Uwe (Kiwi) Lorenz <kiwi@moduleworks.com>2021-03-07 15:28:52 +0100
commit732e49c6547c181de8cc56e93b30dc399e87091d (patch)
treef6d2447ae064d913ca5b892be9a99fe149762c3d /gitlab/tests/test_config.py
parentfc2798fc31a08997c049f609c19dd4ab8d75964e (diff)
downloadgitlab-732e49c6547c181de8cc56e93b30dc399e87091d.tar.gz
chore: make lint happy
Diffstat (limited to 'gitlab/tests/test_config.py')
-rw-r--r--gitlab/tests/test_config.py35
1 files 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