Skip to content

Commit

Permalink
add system test
Browse files Browse the repository at this point in the history
  • Loading branch information
Linchin authored Aug 2, 2024
1 parent 12bc8b9 commit 0e4f8d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/system/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,11 @@ def test_create_bigquery_client_with_credentials_base64_respects_project(
project_id="connection-url-project",
)
assert bqclient.project == "connection-url-project"


def test_create_bigquery_client_with_user_agent(module_under_test):
user_agent = "test_user_agent"

bqclient = module_under_test.create_bigquery_client(user_agent=user_agent)

assert bqclient._connection._client_info.user_agent == user_agent

0 comments on commit 0e4f8d3

Please sign in to comment.