Skip to content

Commit 88e0384

Browse files
committed
Initialize client library from config file and environmental properties (#52)
1 parent 3524822 commit 88e0384

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test_WriteApi.py

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

471471
def test_connection_option_from_conf_file(self):
472472
self.client.close()
473-
print(os.getcwd())
474-
os.chdir("../tests")
475-
self.client = InfluxDBClient.from_config_file(os.getcwd() + "/config.ini", self.debug)
473+
self.client = InfluxDBClient.from_config_file(os.getcwd() + "/tests/config.ini", self.debug)
476474

477475
self._check_connection_settings()
478476

@@ -492,8 +490,7 @@ def _check_connection_settings(self):
492490

493491
def test_default_tags_from_conf_file(self):
494492
self.client.close()
495-
os.chdir("../tests")
496-
self.client = InfluxDBClient.from_config_file(os.getcwd() + "/config.ini", self.debug)
493+
self.client = InfluxDBClient.from_config_file(os.getcwd() + "/tests/config.ini", self.debug)
497494

498495
self._write_point()
499496

0 commit comments

Comments
 (0)