Skip to content

Commit 60f6cc7

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 bcf0191 commit 60f6cc7

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
@@ -29,7 +29,7 @@ with_mock_api({
2929
data_source = "foo",
3030
signal = "bar",
3131
time_type = "day",
32-
geo_type = "county",
32+
geo_type = c("county", "state"),
3333
min_time = as.Date(c("2020-01-01", "2020-10-02")),
3434
max_time = as.Date(c("2020-01-02", "2020-10-03")),
3535
min_value = 0,

0 commit comments

Comments
 (0)