Ejemplo n.º 1
0
 def test_build_field_list(self):
     # by default only datemodified is included as a query field
     field_list, ids_to_breadcrumbs = tap_quickbase.build_field_lists(
         self.schema, self.metadata, [])
     self.assertEqual(1, len(field_list))
     self.assertEqual(['properties', 'datemodified'],
                      ids_to_breadcrumbs['2'])
Ejemplo n.º 2
0
 def test_build_field_list_include_datecreated(self):
     singer_metadata.write(self.metadata, ('properties', 'datecreated'),
                           'selected', True)
     field_list, ids_to_breadcrumbs = tap_quickbase.build_field_lists(
         self.schema, self.metadata, [])
     self.assertEqual(2, len(field_list))
     self.assertEqual(['properties', 'datecreated'],
                      ids_to_breadcrumbs['1'])
Ejemplo n.º 3
0
 def test_build_field_list_include_datecreated(self):
     self.properties['datecreated'].selected = 'true'
     field_list, ids_to_names = tap_quickbase.build_field_lists(
         self.properties, self.metadata)
     self.assertEqual(2, len(field_list))
     self.assertEqual('datecreated', ids_to_names['1'])
Ejemplo n.º 4
0
 def test_build_field_list(self):
     # by default only datemodified is included as a query field
     field_list, ids_to_names = tap_quickbase.build_field_lists(
         self.properties, self.metadata)
     self.assertEqual(1, len(field_list))
     self.assertEqual('datemodified', ids_to_names['2'])