diff --git a/tests/testthat/test-module_teal.R b/tests/testthat/test-module_teal.R index 2e91a13f57..79db71e2c3 100644 --- a/tests/testthat/test-module_teal.R +++ b/tests/testthat/test-module_teal.R @@ -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, diff --git a/tests/testthat/test-modules.R b/tests/testthat/test-modules.R index b1658af98c..4e4c1474cb 100644 --- a/tests/testthat/test-modules.R +++ b/tests/testthat/test-modules.R @@ -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))