Skip to content

Commit 9812d0f

Browse files
committed
add DataFrameClient test for DSN constructor
1 parent 2e8c588 commit 9812d0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

influxdb/tests/dataframe_client_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,3 +553,8 @@ def test_datetime_to_epoch(self):
553553
cli._datetime_to_epoch(timestamp, time_precision='n'),
554554
1356998400000000000.0
555555
)
556+
557+
def test_dsn_constructor(self):
558+
client = DataFrameClient.from_DSN('influxdb://localhost:8086')
559+
self.assertIsInstance(client, DataFrameClient)
560+
self.assertEqual('http://localhost:8086', client._baseurl)

0 commit comments

Comments
 (0)