@@ -403,16 +403,15 @@ def test_resets(self):
403403 assert (storage ._counters == {'impressionsQueued' : 0 , 'impressionsDeduped' : 0 , 'impressionsDropped' : 0 , 'eventsQueued' : 0 , 'eventsDropped' : 0 ,
404404 'authRejections' : 0 , 'tokenRefreshes' : 0 })
405405 assert (storage ._exceptions == {'methodExceptions' : {'treatment' : 0 , 'treatments' : 0 , 'treatmentWithConfig' : 0 , 'treatmentsWithConfig' : 0 , 'track' : 0 }})
406- assert (storage ._records == {'lastSynchronizations' : {'split' : 0 , 'segment' : 0 , 'mySegment' : 0 , ' impression' : 0 , 'impressionCount' : 0 , 'event' : 0 , 'telemetry' : 0 , 'token' : 0 },
406+ assert (storage ._records == {'lastSynchronizations' : {'split' : 0 , 'segment' : 0 , 'impression' : 0 , 'impressionCount' : 0 , 'event' : 0 , 'telemetry' : 0 , 'token' : 0 },
407407 'sessionLength' : 0 })
408- assert (storage ._http_errors == {'split' : {}, 'segment' : {}, 'mySegment' : {}, ' impression' : {}, 'impressionCount' : {}, 'event' : {}, 'telemetry' : {}, 'token' : {}})
409- assert (storage ._config == {'blockUntilReadyTimeout' :0 , 'notReady' :0 , 'userConsent' : 0 , ' timeUntilReady' : 0 })
408+ assert (storage ._http_errors == {'split' : {}, 'segment' : {}, 'impression' : {}, 'impressionCount' : {}, 'event' : {}, 'telemetry' : {}, 'token' : {}})
409+ assert (storage ._config == {'blockUntilReadyTimeout' :0 , 'notReady' :0 , 'timeUntilReady' : 0 })
410410 assert (storage ._streaming_events == [])
411411 assert (storage ._tags == [])
412- assert (storage ._integrations == {})
413412
414413 assert (storage ._latencies == {'methodLatencies' : {'treatment' : [], 'treatments' : [], 'treatmentWithConfig' : [], 'treatmentsWithConfig' : [], 'track' : []},
415- 'httpLatencies' : {'split' : [], 'segment' : [], 'mySegment' : [], ' impression' : [], 'impressionCount' : [], 'event' : [], 'telemetry' : [], 'token' : []}})
414+ 'httpLatencies' : {'split' : [], 'segment' : [], 'impression' : [], 'impressionCount' : [], 'event' : [], 'telemetry' : [], 'token' : []}})
416415
417416 def test_record_config (self ):
418417 storage = InMemoryTelemetryStorage ()
@@ -445,8 +444,7 @@ def test_record_config(self):
445444 'blockUntilReadyTimeout' : 0 ,
446445 'timeUntilReady' : 0 ,
447446 'notReady' : 0 ,
448- 'redundantFactoryCount' : 0 ,
449- 'userConsent' : 0 }
447+ 'redundantFactoryCount' : 0 }
450448 )
451449
452450 def test_record_counters (self ):
@@ -541,9 +539,9 @@ def test_pop_counters(self):
541539 [storage .record_sync_error ('token' , '502' ) for i in range (5 )]
542540 http_errors = storage .pop_http_errors ()
543541 assert (http_errors == {'split' : {'400' : 1 , '401' : 1 , '402' : 1 }, 'segment' : {'500' : 1 , '501' : 1 , '502' : 1 },
544- 'mySegment' : {}, ' impression' : {'502' : 1 }, 'impressionCount' : {'501' : 1 , '502' : 1 },
542+ 'impression' : {'502' : 1 }, 'impressionCount' : {'501' : 1 , '502' : 1 },
545543 'event' : {'501' : 1 }, 'telemetry' : {'505' : 1 }, 'token' : {'502' : 5 }})
546- assert (storage ._http_errors == {'split' : {}, 'segment' : {}, 'mySegment' : {}, ' impression' : {},
544+ assert (storage ._http_errors == {'split' : {}, 'segment' : {}, 'impression' : {},
547545 'impressionCount' : {}, 'event' : {}, 'telemetry' : {}, 'token' : {}})
548546
549547 storage .record_auth_rejections ()
@@ -587,7 +585,7 @@ def test_pop_latencies(self):
587585 [storage .record_sync_latency ('telemetry' , i ) for i in [100 , 50 , 160 ]]
588586 [storage .record_sync_latency ('token' , i ) for i in [10 , 15 , 100 ]]
589587 sync_latency = storage .pop_http_latencies ()
590- assert (storage ._latencies ['httpLatencies' ] == {'split' : [], 'segment' : [], 'mySegment' : [], ' impression' : [], 'impressionCount' : [], 'event' : [], 'telemetry' : [], 'token' : []})
591- assert (sync_latency == {'split' : [50 , 10 , 20 , 40 ], 'segment' : [70 , 100 , 40 , 30 ], 'mySegment' : [],
588+ assert (storage ._latencies ['httpLatencies' ] == {'split' : [], 'segment' : [], 'impression' : [], 'impressionCount' : [], 'event' : [], 'telemetry' : [], 'token' : []})
589+ assert (sync_latency == {'split' : [50 , 10 , 20 , 40 ], 'segment' : [70 , 100 , 40 , 30 ],
592590 'impression' : [10 , 20 ], 'impressionCount' : [5 , 10 ], 'event' : [50 , 40 ],
593591 'telemetry' : [100 , 50 , 160 ], 'token' : [10 , 15 , 100 ]})
0 commit comments