Skip to content

Commit

Permalink
Initialize client library from config file and environmental properti…
Browse files Browse the repository at this point in the history
…es (#52)
  • Loading branch information
rolincova committed Jan 15, 2020
1 parent 806b86b commit 0bf42b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_WriteApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ def tearDown(self) -> None:

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

self._check_connection_settings()
Expand All @@ -490,6 +491,7 @@ def _check_connection_settings(self):

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

self._write_point()
Expand Down

0 comments on commit 0bf42b0

Please sign in to comment.