Skip to content

Commit 0d15624

Browse files
committed
update test metadata
1 parent 4088ee6 commit 0d15624

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R-packages/covidcast/tests/testthat/test-plot.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,12 @@ test_that("test incomplete metadata", {
128128
issue = as.Date("2020-02-01"),
129129
stderr = 0.5),
130130
class = c("covidcast_signal", "data.frame"),
131-
metadata = list(geo_type = "state")
131+
metadata = list(geo_type = "state", mean_value = 0, stdev_value = 1)
132132
)
133133

134+
expect_warning(plot(fake_data), NA)
135+
attributes(fake_data)$metadata = list(geo_type = "state", mean_value = 0)
136+
134137
expect_warning(plot(fake_data),
135138
"Metadata for signal mean and standard deviation not",
136139
"available; defaulting to observed mean and standard",

0 commit comments

Comments
 (0)