@@ -47,7 +47,7 @@ def test_simple_notification(self):
47
47
48
48
notification = Notification (event = event , rule = rule )
49
49
50
- with self .settings ( SENTRY_URL_PREFIX = ' http://example.com' ):
50
+ with self .options ({ 'system.url-prefix' : ' http://example.com'} ):
51
51
self .plugin .notify (notification )
52
52
53
53
msg = mail .outbox [0 ]
@@ -76,7 +76,7 @@ def test_notify_users_renders_interfaces_with_utf8(self, _send_mail):
76
76
77
77
notification = Notification (event = event )
78
78
79
- with self .settings ( SENTRY_URL_PREFIX = ' http://example.com' ):
79
+ with self .options ({ 'system.url-prefix' : ' http://example.com'} ):
80
80
self .plugin .notify (notification )
81
81
82
82
stacktrace .get_title .assert_called_once_with ()
@@ -103,7 +103,7 @@ def test_notify_users_renders_interfaces_with_utf8_fix_issue_422(self, _send_mai
103
103
104
104
notification = Notification (event = event )
105
105
106
- with self .settings ( SENTRY_URL_PREFIX = ' http://example.com' ):
106
+ with self .options ({ 'system.url-prefix' : ' http://example.com'} ):
107
107
self .plugin .notify (notification )
108
108
109
109
stacktrace .get_title .assert_called_once_with ()
@@ -129,7 +129,7 @@ def test_notify_users_does_email(self, _send_mail):
129
129
130
130
notification = Notification (event = event )
131
131
132
- with self .settings ( SENTRY_URL_PREFIX = ' http://example.com' ):
132
+ with self .options ({ 'system.url-prefix' : ' http://example.com'} ):
133
133
self .plugin .notify (notification )
134
134
135
135
assert _send_mail .call_count is 1
@@ -159,7 +159,7 @@ def test_multiline_error(self, _send_mail):
159
159
160
160
notification = Notification (event = event )
161
161
162
- with self .settings ( SENTRY_URL_PREFIX = ' http://example.com' ):
162
+ with self .options ({ 'system.url-prefix' : ' http://example.com'} ):
163
163
self .plugin .notify (notification )
164
164
165
165
assert _send_mail .call_count is 1
@@ -226,7 +226,7 @@ def test_notify_users_with_utf8_subject(self):
226
226
227
227
notification = Notification (event = event )
228
228
229
- with self .settings ( SENTRY_URL_PREFIX = ' http://example.com' ):
229
+ with self .options ({ 'system.url-prefix' : ' http://example.com'} ):
230
230
self .plugin .notify (notification )
231
231
232
232
msg = mail .outbox [0 ]
0 commit comments