Skip to content

Commit

Permalink
No files in '~/.cache', fix #129
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed May 22, 2021
1 parent 59997aa commit 03c3b0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-create_beast2_input_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ test_that("abuse", {
)
)
file.remove(output_filename)
unlink(dirname(dirname(dirname(output_filename))))


# output filename is invalid
if (rappdirs::app_dir()$os != "win") {
Expand Down
5 changes: 2 additions & 3 deletions tests/testthat/test-create_beast2_input_file_from_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ test_that("use", {

test_that("abuse", {

output_filename <- get_beautier_tempfilename()

# input_filenames
expect_error(
create_beast2_input_file_from_model(
input_filename = "nonexisting", # Error
output_filename
output_filename = "irrelevant"
),
"'input_filename' not found"
)
Expand All @@ -30,7 +29,7 @@ test_that("abuse", {
expect_error(
create_beast2_input_file_from_model(
input_filename = get_fasta_filename(),
output_filename,
output_filename = "irrelevant",
inference_model = "nonsense"
),
"'inference_model' must be an inference model"
Expand Down

0 comments on commit 03c3b0a

Please sign in to comment.