@@ -203,7 +203,10 @@ class TestNotification(SiteNotification):
203
203
self .assertNotContains (response , 'Test success message' )
204
204
205
205
206
- @override_settings (PRODUCTION_DOMAIN = 'readthedocs.org' )
206
+ @override_settings (
207
+ PRODUCTION_DOMAIN = 'readthedocs.org' ,
208
+ SUPPORT_EMAIL = '[email protected] ' ,
209
+ )
207
210
class SiteNotificationTests (TestCase ):
208
211
209
212
class TestSiteNotification (SiteNotification ):
@@ -235,16 +238,16 @@ def test_context_data(self):
235
238
'other' : {'name' : 'other name' },
236
239
237
240
# readthedocs_processor context
238
- 'DASHBOARD_ANALYTICS_CODE' : None ,
239
- 'DO_NOT_TRACK_ENABLED' : False ,
240
- 'GLOBAL_ANALYTICS_CODE' : None ,
241
+ 'DASHBOARD_ANALYTICS_CODE' : mock . ANY ,
242
+ 'DO_NOT_TRACK_ENABLED' : mock . ANY ,
243
+ 'GLOBAL_ANALYTICS_CODE' : mock . ANY ,
241
244
'PRODUCTION_DOMAIN' : 'readthedocs.org' ,
242
- 'PUBLIC_DOMAIN' : None ,
245
+ 'PUBLIC_DOMAIN' : mock . ANY ,
243
246
'SITE_ROOT' : mock .ANY ,
244
- 'SUPPORT_EMAIL' : None ,
247
+ 'SUPPORT_EMAIL' :
'[email protected] ' ,
245
248
'TEMPLATE_ROOT' : mock .ANY ,
246
- 'USE_PROMOS' : False ,
247
- 'USE_SUBDOMAIN' : False ,
249
+ 'USE_PROMOS' : mock . ANY ,
250
+ 'USE_SUBDOMAIN' : mock . ANY ,
248
251
}
249
252
self .assertEqual (self .n .get_context_data (), context )
250
253
0 commit comments