Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 5, 2024
1 parent ce6e875 commit 1061a9d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/softhsm_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,22 @@ def setup() -> None:
with open(softhsm_conf, 'w') as f:
if softhsm_version == 2:
softhsm_db = _temp_dir()
f.write(f"""
f.write(
f"""
# Generated by test
directories.tokendir = {softhsm_db}
objectstore.backend = file
log.level = DEBUG
""")
"""
)
else:
softhsm_db = _temp_file()
f.write(f"""
f.write(
f"""
# Generated by test
0:{softhsm_db}
""")
"""
)

logging.debug('Initializing the token')
out, err = run_cmd(
Expand Down

0 comments on commit 1061a9d

Please sign in to comment.