Skip to content

Commit 0bf42b0

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_WriteApi.py

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

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

475476
self._check_connection_settings()
@@ -490,6 +491,7 @@ def _check_connection_settings(self):
490491

491492
def test_default_tags_from_conf_file(self):
492493
self.client.close()
494+
os.chdir("../tests")
493495
self.client = InfluxDBClient.from_config_file(os.getcwd() + "/config.ini", self.debug)
494496

495497
self._write_point()

0 commit comments

Comments
 (0)