(v1.5.0.9022) mo properties speed improvement

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2021-02-21 22:56:35 +01:00
1 parent 5ef8cb41a7
commit 062c49fca1
19 files changed
+76 -47

No files matched your search

+10
View File
@@ -86,3 +86,13 @@ test_that("CoL version info works", {
expect_output(print(catalogue_of_life_version()))
})
test_that("CoNS/CoPS are up to date", {
uncategorised <- subset(microorganisms,
genus == "Staphylococcus" &
!species %in% c("", "aureus") &
!mo %in% c(MO_CONS, MO_COPS))
expect(NROW(uncategorised) == 0,
failure_message = paste0("Staphylococcal species not categorised as CoNS/CoPS: S. ",
uncategorised$species, " (", uncategorised$mo, ")"))
})