def test_inspect_bigquery(bigquery_project, topic_id, subscription_id, capsys): inspect_content.inspect_bigquery( GCLOUD_PROJECT, bigquery_project, BIGQUERY_DATASET_ID, BIGQUERY_TABLE_ID, topic_id, subscription_id, ['FIRST_NAME', 'EMAIL_ADDRESS', 'PHONE_NUMBER']) out, _ = capsys.readouterr() assert 'Info type: FIRST_NAME' in out
def test_inspect_bigquery( bigquery_project, topic_id, subscription_id, capsys): inspect_content.inspect_bigquery( GCLOUD_PROJECT, bigquery_project, BIGQUERY_DATASET_ID, BIGQUERY_TABLE_ID, topic_id, subscription_id, ['FIRST_NAME', 'EMAIL_ADDRESS', 'PHONE_NUMBER']) out, _ = capsys.readouterr() assert 'Info type: FIRST_NAME' in out
def test_inspect_bigquery(bigquery_project, topic_id, subscription_id, capsys): try: inspect_content.inspect_bigquery( GCLOUD_PROJECT, bigquery_project, BIGQUERY_DATASET_ID, BIGQUERY_TABLE_ID, topic_id, subscription_id, ["FIRST_NAME", "EMAIL_ADDRESS", "PHONE_NUMBER"], timeout=1) out, _ = capsys.readouterr() assert "Inspection operation started" in out finally: cancel_operation(out)