Skip to content

Commit 106d965

Browse files
refactor: write rest client
1 parent 7c2972b commit 106d965

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

tests/test_influxdb_client_3_integration.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def setUp(self):
4444
self.host = os.getenv('TESTING_INFLUXDB_URL')
4545
self.token = os.getenv('TESTING_INFLUXDB_TOKEN')
4646
self.database = os.getenv('TESTING_INFLUXDB_DATABASE')
47+
# self.host = 'http://localhost:9000'
48+
# self.token = 'apiv3_YFw5WFYo7m0m2A1dMV8J9SIViuPzTlvrGlF3kaQARM8efwjjdX7mrUJB6sEBC-ZIhIUr_VgeOGB96we0VtkYkw'
49+
# self.database = 'bucket0'
4750
self.client = InfluxDBClient3(host=self.host, database=self.database, token=self.token)
4851

4952
def tearDown(self):
@@ -325,13 +328,13 @@ def test_multiprocessing_helper(self):
325328
)
326329
writer.__del__()
327330
time.sleep(0.8)
328-
client = InfluxDBClient3(
329-
host=self.host,
330-
org=org,
331-
database=self.database,
332-
token=self.token
333-
)
334-
df = client.query(f'select * from {measurement}', mode="pandas")
331+
# client = InfluxDBClient3(
332+
# host=self.host,
333+
# org=org,
334+
# database=self.database,
335+
# token=self.token
336+
# )
337+
df = self.client.query(f'select * from {measurement}', mode="pandas")
335338
self.assertEqual(9, len(df))
336339

337340
test_cert = """-----BEGIN CERTIFICATE-----

0 commit comments

Comments
 (0)