Skip to content

Commit 203c924

Browse files
committed
fix tests
1 parent 353138e commit 203c924

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

integrations/server/test_covidcast.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_fields(self):
8686
self.cur.execute('''
8787
insert into covidcast values
8888
(0, 'src', 'sig', 'day', 'county', 20200414, '01234',
89-
123, 1.5, 2.5, 3.5, 456, 4, 20200414, 0)
89+
123, 1.5, 2.5, 3.5, 456, 4, 20200414, 0, 1, False)
9090
''')
9191
self.cnx.commit()
9292

@@ -114,7 +114,8 @@ def test_fields(self):
114114
'sample_size': 3.5,
115115
'direction': 4,
116116
'issue': 20200414,
117-
'lag': 0
117+
'lag': 0,
118+
'signal': 'sig'
118119
}],
119120
'message': 'success',
120121
})

integrations/server/test_covidcast_meta.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_filter(self):
9696
# insert dummy data and accumulate expected results (in sort order)
9797
template = '''
9898
insert into covidcast values
99-
(0, "%s", "%s", "%s", "%s", %d, "%s", 123, %d, 0, 0, 456, 0, %d, 0)
99+
(0, "%s", "%s", "%s", "%s", %d, "%s", 123, %d, 0, 0, 456, 0, %d, 0, 1, %d)
100100
'''
101101
expected = []
102102
for src in ('src1', 'src2'):
@@ -122,7 +122,7 @@ def test_filter(self):
122122
})
123123
for tv in (1, 2):
124124
for gv, v in zip(('geo1', 'geo2'), (10, 20)):
125-
self.cur.execute(template % (src, sig, tt, gt, tv, gv, v, tv))
125+
self.cur.execute(template % (src, sig, tt, gt, tv, gv, v, tv, False))
126126
self.cnx.commit()
127127
update_cache(args=None)
128128

0 commit comments

Comments
 (0)