Show translated pathogen names instead of microorganism codes in grouped traditional antibiograms, including for unknown species

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-10-15 10:31:07 +02:00
1 parent 3db586a110
commit b3ecc01657
8 files changed
+22 -17

No files matched your search

+2 -1
View File
@@ -53,7 +53,8 @@ test_that("test-antibiogram.R", {
warning = function(w) conditionMessage(w)
)
expect_inherits(ab_grouped, "antibiogram")
expect_true("UNKNOWN" %in% as.character(ab_grouped[[2]]))
expect_true(mo_shortname("UNKNOWN", language = NULL) %in% ab_grouped[[2]])
expect_false(any(as.character(ab_grouped[[2]]) %in% c("UNKNOWN", "B_ESCHR_COLI")))
}
# Traditional antibiogram ----------------------------------------------