Skip to content

Commit a8dc816

Browse files
feat: support env
1 parent 4f70184 commit a8dc816

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

influxdb_client_3/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def from_env(**kwargs):
6565
`InfluxDBClient3` constructor for customization.
6666
:return: An initialized `InfluxDBClient3` instance.
6767
"""
68-
6968
host = os.getenv("INFLUX_HOST")
7069
token = os.getenv("INFLUX_TOKEN")
7170
database = os.getenv("INFLUX_DATABASE")

tests/test_influxdb_client_3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from unittest.mock import patch
33

4-
from influxdb_client_3 import InfluxDBClient3, from_env
4+
from influxdb_client_3 import InfluxDBClient3, from_env, write_client_options
55
from tests.util import asyncio_run
66
from tests.util.mocks import ConstantFlightServer, ConstantData
77

0 commit comments

Comments
 (0)