Beispiel #1
0
def _setup():
    global spark_events, guid1, guid2, guid3, time_stamp

    spark_events = SparkEvents()
    spark_events.handler = MagicMock()
    spark_events._get_utc_date_time = MagicMock()
    spark_events._verify_language_ok = MagicMock()
    time_stamp = spark_events._get_utc_date_time()
    guid1 = utils.generate_uuid()
    guid2 = utils.generate_uuid()
    guid3 = utils.generate_uuid()
Beispiel #2
0
def _setup():
    global spark_events, guid, time_stamp

    spark_events = SparkEvents()
    spark_events.handler = MagicMock()
    SparkEvents.get_utc_date_time = MagicMock()
    time_stamp = spark_events.get_utc_date_time()
    guid = utils.generate_uuid()
Beispiel #3
0
 def _generate_uuid():
     return generate_uuid()
Beispiel #4
0
 def __init__(self):
     self.guid = utils.generate_uuid()
Beispiel #5
0
 def _generate_uuid():
     return generate_uuid()