Skip to content

Commit

Permalink
Update test_cli.py
Browse files Browse the repository at this point in the history
including `--FLEPI_PATH` so that inference_main can find inference_slot
  • Loading branch information
emprzy committed Jun 28, 2024
1 parent a800eba commit 9a49038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_Rscript_inference_main():
# test the same as above using an R script, instead of CliRunner use a command line
os.chdir(os.path.dirname(__file__) + "/tutorial_two_subpops")

returncode, stdout, stderr = command_safe_run("Rscript ../../flepimop/main_scripts/inference_main.R -c config_sample_2pop_inference.yml -n 1",
returncode, stdout, stderr = command_safe_run("Rscript --FLEPI_PATH ../../flepimop/main_scripts/inference_main.R -c config_sample_2pop_inference.yml -n 1",
command_name="testing Rscript",
fail_on_fail=False)
assert returncode == 0
Expand Down

0 comments on commit 9a49038

Please sign in to comment.