@@ -714,6 +714,38 @@ def test_full_input_manifest(self):
714714 'Education' , 'Urban' , 'US' , 'High' ]
715715 }, old_manifest )
716716
717+ def test_full_input_manifest_dtypes_support (self ):
718+ path = os .path .join (os .path .dirname (os .path .realpath (__file__ )), 'data_examples' , 'data_full_input_manifest' )
719+ os .environ ["KBC_DATADIR" ] = path
720+ os .environ ['KBC_DATA_TYPE_SUPPORT' ] = 'authoritative'
721+
722+ ci = CommonInterface ()
723+ tables = ci .get_input_tables_definitions ()
724+
725+ ci .write_manifests ([tables [0 ]])
726+ manifest_filename = tables [0 ].full_path + '.manifest'
727+ with open (manifest_filename ) as manifest_file :
728+ old_manifest = json .load (manifest_file )
729+
730+ self .maxDiff = None
731+
732+ self .assertEqual ({
733+ 'id' : 'in.c-main.test' ,
734+ 'uri' : 'https://connection.keboola.com//v2/storage/tables/in.c-main.test' ,
735+ 'name' : 'sample.csv' ,
736+ 'created' : '2015-11-02T09:11:37+0100' ,
737+ 'last_change_date' : '2015-11-02T09:11:37+0100' ,
738+ 'last_import_date' : '2015-11-02T09:11:37+0100' ,
739+ 'rows_count' : 400 ,
740+ 'data_size_bytes' : 81920 ,
741+ 'is_alias' : False ,
742+ 'indexed_columns' : ['x' ],
743+ 'primary_key' : ['x' ],
744+ 'column_metadata' : {'x' : [{'key' : 'foo' , 'value' : 'gogo' }]},
745+ 'columns' : ['x' , 'Sales' , 'CompPrice' , 'Income' , 'Advertising' , 'Population' , 'Price' , 'ShelveLoc' , 'Age' ,
746+ 'Education' , 'Urban' , 'US' , 'High' ]
747+ }, old_manifest )
748+
717749
718750class TestConfiguration (unittest .TestCase ):
719751
0 commit comments