Testing: fix oauth2 new-attr tracking

This commit is contained in:
Chris Slowe
2016-03-09 11:12:10 -08:00
parent d6f810a3a4
commit b128f3814c

View File

@@ -132,6 +132,8 @@ class TestEventCollector(RedditTestCase):
'sr_name': new_link.subreddit_slow.name,
'geoip_country': context.location,
'oauth2_client_id': context.oauth2_client._id,
'oauth2_client_app_type': context.oauth2_client.app_type,
'oauth2_client_name': context.oauth2_client.name,
'referrer_domain': self.domain_mock(),
'referrer_url': request.headers.get(),
'user_agent': request.user_agent,
@@ -180,6 +182,8 @@ class TestEventCollector(RedditTestCase):
'user_id': context.user._id,
'user_name': context.user.name,
'oauth2_client_id': context.oauth2_client._id,
'oauth2_client_app_type': context.oauth2_client.app_type,
'oauth2_client_name': context.oauth2_client.name,
'referrer_domain': self.domain_mock(),
'geoip_country': context.location,
'obfuscated_data': {
@@ -216,6 +220,8 @@ class TestEventCollector(RedditTestCase):
'user_id': context.user._id,
'user_name': context.user.name,
'oauth2_client_id': context.oauth2_client._id,
'oauth2_client_app_type': context.oauth2_client.app_type,
'oauth2_client_name': context.oauth2_client.name,
'referrer_domain': self.domain_mock(),
'details_text': modaction.details_text,
'geoip_country': context.location,
@@ -254,6 +260,8 @@ class TestEventCollector(RedditTestCase):
'sr_id': subreddit._id,
'user_name': context.user.name,
'oauth2_client_id': context.oauth2_client._id,
'oauth2_client_app_type': context.oauth2_client.app_type,
'oauth2_client_name': context.oauth2_client.name,
'geoip_country': context.location,
'obfuscated_data': {
'client_ip': request.ip,