Skip to content

Commit 732e49c

Browse files
committed
chore: make lint happy
1 parent fc2798f commit 732e49c

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

gitlab/tests/test_config.py

+22-13
Original file line numberDiff line numberDiff line change
@@ -197,21 +197,30 @@ def test_valid_data(m_open, path_exists):
197197
@mock.patch("os.path.exists")
198198
@mock.patch("builtins.open")
199199
def test_data_from_helper(m_open, path_exists, tmp_path):
200-
helper = (tmp_path / "helper.sh")
201-
helper.write_text(dedent("""\
202-
#!/bin/sh
203-
echo "secret"
204-
"""))
200+
helper = tmp_path / "helper.sh"
201+
helper.write_text(
202+
dedent(
203+
"""\
204+
#!/bin/sh
205+
echo "secret"
206+
"""
207+
)
208+
)
205209
helper.chmod(0o755)
206210

207-
fd = io.StringIO(dedent("""\
208-
[global]
209-
default = helper
210-
211-
[helper]
212-
url = https://helper.url
213-
oauth_token = helper: %s
214-
""") % helper)
211+
fd = io.StringIO(
212+
dedent(
213+
"""\
214+
[global]
215+
default = helper
216+
217+
[helper]
218+
url = https://helper.url
219+
oauth_token = helper: %s
220+
"""
221+
)
222+
% helper
223+
)
215224

216225
fd.close = mock.Mock(return_value=None)
217226
m_open.return_value = fd

0 commit comments

Comments
 (0)