@@ -98,6 +98,7 @@ def test_create_impression_event(self):
98
98
'enrich_decisions' : True ,
99
99
'anonymize_ip' : False ,
100
100
'revision' : '42' ,
101
+ 'region' : 'US' ,
101
102
}
102
103
103
104
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
@@ -166,6 +167,7 @@ def test_create_impression_event__with_attributes(self):
166
167
'enrich_decisions' : True ,
167
168
'anonymize_ip' : False ,
168
169
'revision' : '42' ,
170
+ 'region' : 'US' ,
169
171
}
170
172
171
173
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
@@ -232,6 +234,7 @@ def test_create_impression_event_when_attribute_is_not_in_datafile(self):
232
234
'enrich_decisions' : True ,
233
235
'anonymize_ip' : False ,
234
236
'revision' : '42' ,
237
+ 'region' : 'US' ,
235
238
}
236
239
237
240
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
@@ -299,6 +302,7 @@ def test_create_impression_event_calls_is_attribute_valid(self):
299
302
'enrich_decisions' : True ,
300
303
'anonymize_ip' : False ,
301
304
'revision' : '42' ,
305
+ 'region' : 'US' ,
302
306
}
303
307
304
308
def side_effect (* args , ** kwargs ):
@@ -389,6 +393,7 @@ def test_create_impression_event__with_user_agent_when_bot_filtering_is_enabled(
389
393
'enrich_decisions' : True ,
390
394
'anonymize_ip' : False ,
391
395
'revision' : '42' ,
396
+ 'region' : 'US' ,
392
397
}
393
398
394
399
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
@@ -465,6 +470,7 @@ def test_create_impression_event__with_empty_attributes_when_bot_filtering_is_en
465
470
'enrich_decisions' : True ,
466
471
'anonymize_ip' : False ,
467
472
'revision' : '42' ,
473
+ 'region' : 'US' ,
468
474
}
469
475
470
476
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
@@ -547,6 +553,7 @@ def test_create_impression_event__with_user_agent_when_bot_filtering_is_disabled
547
553
'enrich_decisions' : True ,
548
554
'anonymize_ip' : False ,
549
555
'revision' : '42' ,
556
+ 'region' : 'US' ,
550
557
}
551
558
552
559
with mock .patch ('time.time' , return_value = 42.123 ), mock .patch (
0 commit comments