Skip to content

Commit 0830666

Browse files
feat: support-env
1 parent 82405e6 commit 0830666

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_write_api.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import unittest
44
from unittest import mock
55

6+
from influxdb_client_3 import Point
67
from influxdb_client_3.write_client.client.write_api import WriteApi
78
from influxdb_client_3.write_client.domain import WritePrecision
89

@@ -19,9 +20,9 @@ def setUp(self):
1920
def test_write_batching_with_bytes(self, mock_write_batching):
2021
bucket = "my_bucket"
2122
org = "my_org"
22-
data = b"test_data"
23+
# data = b"test_data"
2324
precision = WritePrecision.NS
25+
point = Point.measurement("h2o").field("val", 1).time(1257894000123456000, write_precision=precision)
2426

25-
self.write_api._write_batching(bucket, org, data, precision)
26-
27-
mock_write_batching.assert_called_once_with(bucket, org, data, precision)
27+
self.write_api._write_batching(bucket, org, point, precision)
28+
mock_write_batching.assert_called_once_with(bucket, org, point, precision)

0 commit comments

Comments
 (0)