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 16, 2020
1 parent f2f87ce commit bee20df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_WriteApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def test_connection_option_from_env(self):
def _check_connection_settings(self):
self.write_client = self.client.write_api(write_options=SYNCHRONOUS)

self.assertEqual(os.environ("INFLUXDB_V2_URL"), self.client.url)
self.assertEqual(os.getenv("INFLUXDB_V2_URL"), self.client.url)
self.assertEqual("my-org", self.client.org)
self.assertEqual("my-token", self.client.token)
self.assertEqual(6000, self.client.timeout)
Expand Down

0 comments on commit bee20df

Please sign in to comment.