Skip to content

Commit

Permalink
Fix bug when specifying output
Browse files Browse the repository at this point in the history
  • Loading branch information
maabuu committed Feb 20, 2024
1 parent 72da752 commit 9938b78
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@


def test_parse_args() -> None:
args = _parse_args([mol_pred_1ia1, "-l", mol_true_1ia1, "-p", mol_cond_1ia1, "--full-report", "--outfmt", "csv"])
args = _parse_args(
[
mol_pred_1ia1,
"-l",
mol_true_1ia1,
"-p",
mol_cond_1ia1,
"--full-report",
"--outfmt",
"csv",
]
)
assert args.mol_pred[0] == Path(mol_pred_1ia1)
assert args.mol_true == Path(mol_true_1ia1)
assert args.mol_cond == Path(mol_cond_1ia1)
Expand All @@ -34,11 +45,7 @@ def test_bust_table() -> None:

def test_output() -> None:
output = Path(".test_output.csv")
bust(
table=Path(mols_table),
outfmt="csv",
output=output,
)
bust(table=Path(mols_table), outfmt="csv", output=output)
assert output.exists()


Expand Down

0 comments on commit 9938b78

Please sign in to comment.