mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Testing: fix oauth2 new-attr tracking
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user