Skip to content

Commit

Permalink
Remove tests related to parameters datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
llrs-roche committed Nov 11, 2024
1 parent 59a06ca commit 5d3e89e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
20 changes: 0 additions & 20 deletions tests/testthat/test-module_teal.R
Original file line number Diff line number Diff line change
Expand Up @@ -915,26 +915,6 @@ testthat::describe("srv_teal teal_modules", {
)
})

testthat::it("srv_teal_module.teal_module passes (deprecated) datasets to the server module", {
testthat::expect_warning(
shiny::testServer(
app = srv_teal,
args = list(
id = "test",
data = teal.data::teal_data(iris = iris, mtcars = mtcars),
modules = modules(
module("module_1", server = function(id, datasets) datasets)
)
),
expr = {
session$setInputs(`teal_modules-active_tab` = "module_1")
testthat::expect_s3_class(modules_output$module_1(), "FilteredData")
}
),
"`datasets` argument in the server is deprecated and will be removed in the next release"
)
})

testthat::it("srv_teal_module.teal_module passes server_args to the ...", {
shiny::testServer(
app = srv_teal,
Expand Down
8 changes: 0 additions & 8 deletions tests/testthat/test-modules.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ testthat::test_that("module requires label argument to be a string different tha
testthat::expect_error(module(label = "global_filters"), "is reserved in teal")
})

testthat::test_that("module warns when server contains datasets argument", {
testthat::expect_warning(
module(server = function(id, datasets) NULL),
"`datasets` argument in the server is deprecated"
)
})


testthat::test_that("module expects server being a shiny server module with any argument", {
testthat::expect_no_error(module(server = function(id) NULL))

Expand Down

0 comments on commit 5d3e89e

Please sign in to comment.