@@ -45,7 +45,13 @@ def test_round_trip(self):
4545
4646 # insert dummy data
4747 self .cur .execute (f'''
48- insert into covidcast values
48+ INSERT INTO
49+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
50+ `time_value`, `geo_value`, `value_updated_timestamp`,
51+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
52+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
53+ `missing_stderr`,`missing_sample_size`)
54+ VALUES
4955 (0, 'src', 'sig', 'day', 'county', 20200414, '01234',
5056 123, 1.5, 2.5, 3.5, 456, 4, 20200414, 0, 1, False,
5157 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } )
@@ -92,7 +98,13 @@ def test_round_trip(self):
9298
9399 # # insert dummy data
94100 # self.cur.execute(f'''
95- # insert into covidcast values
101+ # INSERT INTO
102+ # `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
103+ # `time_value`, `geo_value`, `value_updated_timestamp`,
104+ # `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
105+ # `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
106+ # `missing_stderr`,`missing_sample_size`)
107+ # VALUES
96108 # (0, 'src', 'sig', 'day', 'county', 20200414, '01234',
97109 # 123, 1.5, 2.5, 3.5, 456, 4, 20200414, 0, 1, False,
98110 # {Nans.NOT_MISSING}, {Nans.NOT_MISSING}, {Nans.NOT_MISSING})
@@ -129,7 +141,13 @@ def test_csv_format(self):
129141
130142 # insert dummy data
131143 self .cur .execute (f'''
132- insert into covidcast values
144+ INSERT INTO
145+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
146+ `time_value`, `geo_value`, `value_updated_timestamp`,
147+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
148+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
149+ `missing_stderr`,`missing_sample_size`)
150+ VALUES
133151 (0, 'src', 'sig', 'day', 'county', 20200414, '01234',
134152 123, 1.5, 2.5, 3.5, 456, 4, 20200414, 0, 1, False,
135153 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } )
@@ -163,7 +181,13 @@ def test_raw_json_format(self):
163181
164182 # insert dummy data
165183 self .cur .execute (f'''
166- insert into covidcast values
184+ INSERT INTO
185+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
186+ `time_value`, `geo_value`, `value_updated_timestamp`,
187+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
188+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
189+ `missing_stderr`,`missing_sample_size`)
190+ VALUES
167191 (0, 'src', 'sig', 'day', 'county', 20200414, '01234',
168192 123, 1.5, 2.5, 3.5, 456, 4, 20200414, 0, 1, False,
169193 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } )
@@ -205,7 +229,13 @@ def test_fields(self):
205229
206230 # insert dummy data
207231 self .cur .execute (f'''
208- insert into covidcast values
232+ INSERT INTO
233+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
234+ `time_value`, `geo_value`, `value_updated_timestamp`,
235+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
236+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
237+ `missing_stderr`,`missing_sample_size`)
238+ VALUES
209239 (0, 'src', 'sig', 'day', 'county', 20200414, '01234',
210240 123, 1.5, 2.5, 3.5, 456, 4, 20200414, 0, 1, False,
211241 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } )
@@ -326,7 +356,13 @@ def test_location_wildcard(self):
326356
327357 # insert dummy data
328358 self .cur .execute (f'''
329- insert into covidcast values
359+ INSERT INTO
360+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
361+ `time_value`, `geo_value`, `value_updated_timestamp`,
362+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
363+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
364+ `missing_stderr`,`missing_sample_size`)
365+ VALUES
330366 (0, 'src', 'sig', 'day', 'county', 20200414, '11111',
331367 123, 10, 11, 12, 456, 13, 20200414, 0, 1, False,
332368 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } ),
@@ -414,7 +450,13 @@ def test_geo_value(self):
414450
415451 # insert dummy data
416452 self .cur .execute (f'''
417- insert into covidcast values
453+ INSERT INTO
454+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
455+ `time_value`, `geo_value`, `value_updated_timestamp`,
456+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
457+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
458+ `missing_stderr`,`missing_sample_size`)
459+ VALUES
418460 (0, 'src', 'sig', 'day', 'county', 20200414, '11111',
419461 123, 10, 11, 12, 456, 13, 20200414, 0, 1, False,
420462 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } ),
@@ -530,7 +572,13 @@ def test_location_timeline(self):
530572
531573 # insert dummy data
532574 self .cur .execute (f'''
533- insert into covidcast values
575+ INSERT INTO
576+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
577+ `time_value`, `geo_value`, `value_updated_timestamp`,
578+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
579+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
580+ `missing_stderr`,`missing_sample_size`)
581+ VALUES
534582 (0, 'src', 'sig', 'day', 'county', 20200411, '01234',
535583 123, 10, 11, 12, 456, 13, 20200413, 2, 1, False,
536584 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } ),
@@ -618,7 +666,13 @@ def test_unique_key_constraint(self):
618666
619667 # insert dummy data
620668 self .cur .execute (f'''
621- insert into covidcast values
669+ INSERT INTO
670+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
671+ `time_value`, `geo_value`, `value_updated_timestamp`,
672+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
673+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
674+ `missing_stderr`,`missing_sample_size`)
675+ VALUES
622676 (0, 'src', 'sig', 'day', 'county', 20200414, '01234',
623677 0, 0, 0, 0, 0, 0, 20200414, 0, 1, False,
624678 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } )
@@ -628,15 +682,27 @@ def test_unique_key_constraint(self):
628682 # fail to insert different dummy data under the same key
629683 with self .assertRaises (mysql .connector .errors .IntegrityError ):
630684 self .cur .execute (f'''
631- insert into covidcast values
685+ INSERT INTO
686+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
687+ `time_value`, `geo_value`, `value_updated_timestamp`,
688+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
689+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
690+ `missing_stderr`,`missing_sample_size`)
691+ VALUES
632692 (0, 'src', 'sig', 'day', 'county', 20200414, '01234',
633693 1, 1, 1, 1, 1, 1, 20200414, 0, 1, False,
634694 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } )
635695 ''' )
636696
637697 # succeed to insert different dummy data under a different issue
638698 self .cur .execute (f'''
639- insert into covidcast values
699+ INSERT INTO
700+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
701+ `time_value`, `geo_value`, `value_updated_timestamp`,
702+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
703+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
704+ `missing_stderr`,`missing_sample_size`)
705+ VALUES
640706 (0, 'src', 'sig', 'day', 'county', 20200414, '01234',
641707 1, 1, 1, 1, 1, 1, 20200415, 1, 1, False,
642708 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } )
@@ -647,7 +713,13 @@ def test_nullable_columns(self):
647713
648714 # insert dummy data
649715 self .cur .execute (f'''
650- insert into covidcast values
716+ INSERT INTO
717+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
718+ `time_value`, `geo_value`, `value_updated_timestamp`,
719+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
720+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
721+ `missing_stderr`,`missing_sample_size`)
722+ VALUES
651723 (0, 'src', 'sig', 'day', 'county', 20200414, '01234',
652724 123, 0.123, NULL, NULL, 456, NULL, 20200414, 0, 1, False,
653725 { Nans .NOT_MISSING } , { Nans .OTHER } , { Nans .OTHER } )
@@ -693,7 +765,13 @@ def test_temporal_partitioning(self):
693765
694766 # insert dummy data
695767 self .cur .execute (f'''
696- insert into covidcast values
768+ INSERT INTO
769+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
770+ `time_value`, `geo_value`, `value_updated_timestamp`,
771+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
772+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
773+ `missing_stderr`,`missing_sample_size`)
774+ VALUES
697775 (0, 'src', 'sig', 'hour', 'state', 2020041714, 'vi',
698776 123, 10, 11, 12, 456, 13, 2020041714, 0, 1, False,
699777 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } ),
@@ -750,7 +828,13 @@ def test_date_formats(self):
750828
751829 # insert dummy data
752830 self .cur .execute (f'''
753- insert into covidcast values
831+ INSERT INTO
832+ `covidcast` (`id`, `source`, `signal`, `time_type`, `geo_type`,
833+ `time_value`, `geo_value`, `value_updated_timestamp`,
834+ `value`, `stderr`, `sample_size`, `direction_updated_timestamp`,
835+ `direction`, `issue`, `lag`, `is_latest_issue`, `is_wip`,`missing_value`,
836+ `missing_stderr`,`missing_sample_size`)
837+ VALUES
754838 (0, 'src', 'sig', 'day', 'county', 20200411, '01234',
755839 123, 10, 11, 12, 456, 13, 20200413, 0, 1, False,
756840 { Nans .NOT_MISSING } , { Nans .NOT_MISSING } , { Nans .NOT_MISSING } ),
0 commit comments