Beispiel #1
0
def test_set_app_properties():
    spark_context = SparkContext(appName="Testing123")
    _set_app_properties()

    assert spark_context.getLocalProperty("sentry_app_name") == "Testing123"
    # applicationId generated by sparkContext init
    assert (spark_context.getLocalProperty("sentry_application_id") ==
            spark_context.applicationId)