Skip to content

Commit

Permalink
fix: add setup_logging in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Nov 30, 2024
1 parent 666ea2a commit 2cec21d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ def run_pdb2pqr_for_tests(
compare_resnames=False,
):
"""Basic code for invoking PDB2PQR."""
from pdb2pqr import io

if output_pqr is None:
hash_str = f"{args}{input_pdb}"
hash_ = hashlib.sha1(hash_str.encode("UTF-8")).hexdigest()
Expand All @@ -220,6 +222,7 @@ def run_pdb2pqr_for_tests(
_LOGGER.debug(f"Writing output to {output_pqr}")
arg_str = f"{args} {input_pdb} {output_pqr}"
args = PARSER.parse_args(arg_str.split())
io.setup_logger(args.output_pqr, args.log_level)
_ = main_driver(args)
if expected_pqr is not None:
compare_pqr(
Expand Down

0 comments on commit 2cec21d

Please sign in to comment.