Skip to content

Commit 50cc950

Browse files
committed
Correct error in metadata test
It should not be possible to have two signals with the same source, signal, time_type, and geo_type. This will cause a query for that signal to have two metadata rows attached to the covidcast_signal data frame, which will confuse everything.
1 parent 88cebdc commit 50cc950

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
data_source,signal,time_type,geo_type,min_time,max_time,min_value,max_value,max_issue
22
foo,bar,day,county,20200101,20200102,0,10,20200404
3-
foo,bar,day,county,20201002,20201003,0,10,20201101
3+
foo,bar,day,state,20201002,20201003,0,10,20201101

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ with_mock_api({
5252
max_value = 10,
5353
num_locations = 100,
5454
time_type = "day",
55-
geo_type = "county",
55+
geo_type = c("county", "state"),
5656
max_issue = as.Date(c("2020-04-04", "2020-11-01"))
5757
),
5858
class = c("covidcast_meta", "data.frame")

0 commit comments

Comments
 (0)