Skip to content

Commit 806b86b

Browse files
committed
Initialize client library from config file and environmental properties (#52)
1 parent 0641ea7 commit 806b86b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_WriteApi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def tearDown(self) -> None:
470470

471471
def test_connection_option_from_conf_file(self):
472472
self.client.close()
473-
self.client = InfluxDBClient.from_config_file("config.ini", self.debug)
473+
self.client = InfluxDBClient.from_config_file(os.getcwd() + "/config.ini", self.debug)
474474

475475
self._check_connection_settings()
476476

@@ -490,7 +490,7 @@ def _check_connection_settings(self):
490490

491491
def test_default_tags_from_conf_file(self):
492492
self.client.close()
493-
self.client = InfluxDBClient.from_config_file("config.ini", self.debug)
493+
self.client = InfluxDBClient.from_config_file(os.getcwd() + "/config.ini", self.debug)
494494

495495
self._write_point()
496496

0 commit comments

Comments
 (0)