Skip to content

Commit f25bfac

Browse files
committed
Fixes black
1 parent cdd9812 commit f25bfac

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/conftest.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,17 @@ def fake_key_file(tmp_path_factory):
184184
key_path = tmp_path_factory.mktemp(".sfapi_test1", numbered=False) / "key.pem"
185185

186186
# Make a fake key for testing
187-
key_path.write_text(f"""abcdefghijlmo
187+
key_path.write_text(
188+
f"""abcdefghijlmo
188189
-----BEGIN RSA PRIVATE KEY-----
189190
{rsa.generate_private_key(public_exponent=65537, key_size=2048)}
190191
-----END RSA PRIVATE KEY-----
191-
""")
192+
"""
193+
)
192194
key_path.chmod(0o100600)
193195
yield key_path
194196
# make sure to cleanup the test since we put a file in ~/.sfapi_test
195-
temp_path = (Path().home() / ".sfapi_test1")
197+
temp_path = Path().home() / ".sfapi_test1"
196198
if temp_path.exists():
197199
(temp_path / "key.pem").unlink(missing_ok=True)
198200
temp_path.rmdir()
@@ -207,7 +209,7 @@ def empty_key_file(tmp_path_factory):
207209
key_path.chmod(0o100600)
208210
yield key_path
209211
# make sure to cleanup the test since we put a file in ~/.sfapi_test
210-
temp_path = (Path().home() / ".sfapi_test2")
212+
temp_path = Path().home() / ".sfapi_test2"
211213
if temp_path.exists():
212214
(temp_path / "nokey.pem").unlink(missing_ok=True)
213215
temp_path.rmdir()

0 commit comments

Comments
 (0)