Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions tests/testthat/test-install_acro.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
test_that("install_acro installs 'acro' in the specified environment", {
# Specify a temporary environment for testing
test_that("acro is installed in the virtual environment", {
testthat::skip_on_cran()
test_envname <- "test-acro-env"

# Run the install_acro function
install_venv(envname = test_envname)
# Run the acro_init function
acro_init(envname = test_envname)

# Check if 'acro' is installed in the test environment
# Check if 'acro' is installed in the correct environment
is_installed <- reticulate::py_module_available("acro")
expect_true(is_installed)

# remove the temporary environment
reticulate::virtualenv_remove(test_envname, confirm = FALSE)
})
Loading