Ejemplo n.º 1
0
 def __init__(self, connection_dsn, measurement_name, start_time, end_time,
              interval):
     self.client = DataFrameClient.from_dsn(connection_dsn)
     self.measurement_name = measurement_name
     self.start_time = start_time.astimezone(pytz.utc)
     self.end_time = end_time.astimezone(pytz.utc)
     self.interval = interval
Ejemplo n.º 2
0
 def test_dsn_constructor(self):
     """Test data source name deconstructor in TestDataFrameClient."""
     client = DataFrameClient.from_dsn('influxdb://localhost:8086')
     self.assertIsInstance(client, DataFrameClient)
     self.assertEqual('http://localhost:8086', client._baseurl)
 def test_dsn_constructor(self):
     """Test data source name deconstructor in TestDataFrameClient."""
     client = DataFrameClient.from_dsn('influxdb://localhost:8086')
     self.assertIsInstance(client, DataFrameClient)
     self.assertEqual('http://localhost:8086', client._baseurl)