Skip to content

Commit e9b946a

Browse files
committed
All hell broke loose after updatePackageObject()
1 parent 2a44ce5 commit e9b946a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/testthat/test-updateObject.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
sfe <- readRDS(system.file("extdata/sfe_visium.rds", package = "SpatialFeatureExperiment"))
2-
test_that("SFEVersion of first version of SFE object should be NULL", {
3-
expect_null(SFEVersion(sfe))
4-
})
5-
2+
# All hell broke loose after Herve ran updateObject::updatePackageObject()
3+
# and I didn't read the commit message after pulling from upstream devel
64
test_that("Add version in updateObject", {
75
curr_version <- packageVersion("SpatialFeatureExperiment")
6+
int_metadata(sfe)$SFE_version <- NULL
87
expect_message({sfe <- updateObject(sfe, verbose = TRUE)},
98
paste0("Updating it to version ", curr_version))
109
expect_equal(SFEVersion(sfe), curr_version)
1110
})
1211

1312
test_that("Update colFeatureData if present", {
13+
int_metadata(sfe)$SFE_version <- NULL
1414
df <- DataFrame(foo = 1, row.names = "sample_id")
1515
metadata(colData(sfe))$featureData <- df
1616
sfe <- updateObject(sfe)

0 commit comments

Comments
 (0)