#NEWLINE# @ raises ( TypeError ) #NEWLINE# def test_write_points_from_dataframe_fails_without_time_index( self ) : #NEWLINE# #INDENT# dataframe = pd . DataFrame ( data = [ [ '1' , 1 , 1.0 ] , [ '2' , 2 , 2.0 ] ] , columns = [ 'column_one' , 'column_two' , 'column_three' ] ) #NEWLINE# with requests_mock . Mocker ( ) as m : #NEWLINE# #INDENT# m . register_uri ( requests_mock . POST , 'http://localhost:8086/db/db/series' , status_code = 204 ) #NEWLINE# cli = DataFrameClient ( database = 'db' ) #NEWLINE# cli . write_points ( dataframe , 'foo' )