def setUp(self): """All names, characters, and incidents appearing in this test data are fictitious. Any resemblance to real persons, living or dead, is purely coincidental. """ BaseTestCase.setUp(self) fake = make_fake() self.sample_row = { 'additional_comments': 'ceiling box, island.', 'comments_code': 'x2016016074. unit 4 only. unit 3 pending mud rings, ceiling', 'date': '2015/10/31', 'dir_email': '*****@*****.**', 'dir_name': 'Tilda Duchamps', 'dir_phone': '(777) 999-8888', 'disp_description': 'APPROVED PARTIAL', 'first_name': 'Jim', 'input_order': '9999', 'inspection_description': 'ROUGH', 'inspector_id': 'JBRECKENRIDGE', 'job_site_address': '4444 SW 375 CT', 'last_name': 'Breckenridge', 'permit_number': '2015062054', 'permit_type': 'ELEC', 'photo': 'images\\jpg\\generic.jpg', 'request_date': '2015-12-25 00:00:00.0', 'super_email': '*****@*****.**', 'super_name': 'Ilda Rizzo', 'super_phone': '(555) 111-2222' } self.random_rows = [fake.socrata_row() for i in range(5)]
def run(): app = create_app() with app.app_context(): fake = make_fake() load_rows(fake.socrata_rows(800))