Skip to content

Commit 5d35da8

Browse files
committed
chore: replace hard coded version in tests with USER_AGENT
1 parent 9706005 commit 5d35da8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_query.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def test_multiple_flight_client_options(self):
240240

241241
assert ('opt1', 'opt1 in args') in q_api._flight_client_options['generic_options']
242242
assert ('optA', 'A in options') in q_api._flight_client_options['generic_options']
243-
assert (('grpc.secondary_user_agent', 'influxdb3-python/0.12.0dev0') in
243+
assert (('grpc.secondary_user_agent', USER_AGENT) in
244244
q_api._flight_client_options['generic_options'])
245245

246246
def test_override_secondary_user_agent_args(self):
@@ -253,7 +253,7 @@ def test_override_secondary_user_agent_args(self):
253253
)
254254

255255
assert ('grpc.secondary_user_agent', 'my_custom_user_agent') in q_api._flight_client_options['generic_options']
256-
assert not (('grpc.secondary_user_agent', 'influxdb3-python/0.12.0dev0') in
256+
assert not (('grpc.secondary_user_agent', USER_AGENT) in
257257
q_api._flight_client_options['generic_options'])
258258

259259
def test_secondary_user_agent_in_options(self):
@@ -274,7 +274,7 @@ def test_secondary_user_agent_in_options(self):
274274

275275
assert ('optA', 'A in options') in q_api._flight_client_options['generic_options']
276276
assert ('grpc.secondary_user_agent', 'my_custom_user_agent') in q_api._flight_client_options['generic_options']
277-
assert (('grpc.secondary_user_agent', 'influxdb3-python/0.12.0dev0') not in
277+
assert (('grpc.secondary_user_agent', USER_AGENT) not in
278278
q_api._flight_client_options['generic_options'])
279279

280280
def test_prepare_query(self):

0 commit comments

Comments
 (0)