Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
add DataFrameClient test for DSN constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
eman committed Dec 7, 2016
1 parent 2e8c588 commit 9812d0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions influxdb/tests/dataframe_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,3 +553,8 @@ def test_datetime_to_epoch(self):
cli._datetime_to_epoch(timestamp, time_precision='n'),
1356998400000000000.0
)

def test_dsn_constructor(self):
client = DataFrameClient.from_DSN('influxdb://localhost:8086')
self.assertIsInstance(client, DataFrameClient)
self.assertEqual('http://localhost:8086', client._baseurl)

0 comments on commit 9812d0f

Please sign in to comment.