@@ -86,6 +86,7 @@ def test_create_impression_event(self):
86
86
'enrich_decisions' : True ,
87
87
'anonymize_ip' : False ,
88
88
'revision' : '42' ,
89
+ 'region' : 'US' ,
89
90
}
90
91
91
92
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
@@ -141,6 +142,7 @@ def test_create_impression_event__with_attributes(self):
141
142
'enrich_decisions' : True ,
142
143
'anonymize_ip' : False ,
143
144
'revision' : '42' ,
145
+ 'region' : 'US' ,
144
146
}
145
147
146
148
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
@@ -194,6 +196,7 @@ def test_create_impression_event_when_attribute_is_not_in_datafile(self):
194
196
'enrich_decisions' : True ,
195
197
'anonymize_ip' : False ,
196
198
'revision' : '42' ,
199
+ 'region' : 'US' ,
197
200
}
198
201
199
202
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
@@ -250,6 +253,7 @@ def test_create_impression_event_calls_is_attribute_valid(self):
250
253
'enrich_decisions' : True ,
251
254
'anonymize_ip' : False ,
252
255
'revision' : '42' ,
256
+ 'region' : 'US' ,
253
257
}
254
258
255
259
def side_effect (* args , ** kwargs ):
@@ -328,6 +332,7 @@ def test_create_impression_event__with_user_agent_when_bot_filtering_is_enabled(
328
332
'enrich_decisions' : True ,
329
333
'anonymize_ip' : False ,
330
334
'revision' : '42' ,
335
+ 'region' : 'US' ,
331
336
}
332
337
333
338
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
@@ -392,6 +397,7 @@ def test_create_impression_event__with_empty_attributes_when_bot_filtering_is_en
392
397
'enrich_decisions' : True ,
393
398
'anonymize_ip' : False ,
394
399
'revision' : '42' ,
400
+ 'region' : 'US' ,
395
401
}
396
402
397
403
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
@@ -462,6 +468,7 @@ def test_create_impression_event__with_user_agent_when_bot_filtering_is_disabled
462
468
'enrich_decisions' : True ,
463
469
'anonymize_ip' : False ,
464
470
'revision' : '42' ,
471
+ 'region' : 'US' ,
465
472
}
466
473
467
474
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
0 commit comments