File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11sfe <- 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
64test_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
1312test_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 )
You can’t perform that action at this time.
0 commit comments