Skip to content

Commit

Permalink
move connectivity print stmt out of test fn
Browse files Browse the repository at this point in the history
  • Loading branch information
amygdala committed Jun 3, 2020
1 parent 6907658 commit 80d2473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tables/automl/automl_tables_set_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ def create_client_with_endpoint(gcp_project_id):
)
# [END automl_set_endpoint]

# do simple test to check client connectivity
print(client.list_datasets())

return client
3 changes: 1 addition & 2 deletions tables/automl/endpoint_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@


def test_client_creation(capsys):
client = automl_tables_set_endpoint.create_client_with_endpoint(PROJECT)
print(client.list_datasets())
automl_tables_set_endpoint.create_client_with_endpoint(PROJECT)
out, _ = capsys.readouterr()
assert "GRPCIterator" in out

0 comments on commit 80d2473

Please sign in to comment.