Skip to content

Commit 2190152

Browse files
fix: add test for write_port_overwrite in InfluxDBClient3
1 parent 5f968d3 commit 2190152

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_influxdb_client_3.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ def test_token_auth_scheme_explicit(self):
6767
)
6868
self.assertEqual(client._client.auth_header_value, "my_scheme my_token")
6969

70+
def test_write_port_overwrite(self):
71+
with InfluxDBClient3(
72+
host="http://localhost:8080",
73+
write_port_overwrite=8086,
74+
token="my_token",
75+
) as client:
76+
self.assertEqual(client._client.url,"http://localhost:8086")
77+
7078
def test_write_options(self):
7179
client = InfluxDBClient3(
7280
host="localhost",

0 commit comments

Comments
 (0)