Skip to content

Commit

Permalink
fix failing example tests with --out-thresh
Browse files Browse the repository at this point in the history
  • Loading branch information
aryarm committed Nov 26, 2024
1 parent 592bf88 commit b08162f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def install_handle_python_numpy(session):
handle incompatibilities with python and numpy versions
see https://github.com/cjolowicz/nox-poetry/issues/1116
"""
if session._session.python in ["3.11", "3.12"]:
if session._session.python in ["3.11", "3.12", "3.13"]:
session._session.install(".")
else:
session.install(".")
Expand Down
4 changes: 2 additions & 2 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def test_1000G_simulated_maf(capfd):
out_vars = ("rs1046282", "rs36046716")

for maf in (0.05, 0.30, 0.31, 0.38):
cmd = f"run --maf {maf} -o {out_hp_file} {gt_file} {pt_file}"
cmd = f"run --out-thresh 1 --maf {maf} -o {out_hp_file} {gt_file} {pt_file}"
runner = CliRunner()
result = runner.invoke(main, cmd.split(" "), catch_exceptions=False)
captured = capfd.readouterr()
Expand Down Expand Up @@ -758,7 +758,7 @@ def test_1000G_real(capfd, caplog):
caplog.set_level(logging.INFO)

for maf in (0.05, 0.14, 0.22, 0.23, 0.35):
cmd = f"run --maf {maf} -o {out_hp_file} {gt_file} {pt_file}"
cmd = f"run --out-thresh 1 --maf {maf} -o {out_hp_file} {gt_file} {pt_file}"
runner = CliRunner()
result = runner.invoke(main, cmd.split(" "), catch_exceptions=False)
captured = capfd.readouterr()
Expand Down

0 comments on commit b08162f

Please sign in to comment.