示例#1
0
def test_numerical_risk_analysis(topic_id, subscription_id, capsys):
    risk.numerical_risk_analysis(GCLOUD_PROJECT, TABLE_PROJECT, DATASET_ID,
                                 'harmful', NUMERIC_FIELD, topic_id,
                                 subscription_id)

    out, _ = capsys.readouterr()
    assert 'Value Range:' in out
示例#2
0
def test_numerical_risk_analysis(topic_id, subscription_id, bigquery_project,
                                 capsys):
    risk.numerical_risk_analysis(
        GCLOUD_PROJECT,
        TABLE_PROJECT,
        BIGQUERY_DATASET_ID,
        BIGQUERY_HARMFUL_TABLE_ID,
        NUMERIC_FIELD,
        topic_id,
        subscription_id,
    )

    out, _ = capsys.readouterr()
    assert "Value Range:" in out