Skip to content

Commit

Permalink
tests: pass run_bin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luciorq committed Nov 29, 2024
1 parent ec3bf42 commit a25ba3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# condathis 0.0.7

## Breaking changes

## New features

* `install_micromamba()` now tries to download an uncompressed version of the 'micromamba' binary if `untar()` fails
because of missing `bzip2` system library. (#10 and #14)

* New `parse_output()` parse lines output streams from `run()` results into character vectors.

* New `run_bin()` runs binary installed in a conda environment without using `micromamba run`.
* New `run_bin()` runs binary installed in a Conda environment without wrapping in `micromamba run`.

## Minor improvements and fixes

Expand Down
5 changes: 3 additions & 2 deletions tests/testthat/test-run_bin.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ test_that("Accept binary outside of environment", {
run_bin_res <- run_bin(
"R", "--version",
env_name = "fake-env",
verbose = "silent"
verbose = "silent",
error = "continue"
)
testthat::expect_equal(run_bin_res$status, 0)
testthat::expect_true(is.numeric(run_bin_res$status))
})

0 comments on commit a25ba3e

Please sign in to comment.