@@ -114,6 +114,16 @@ def test_validate_endpoint(self):
114
114
c .configure (endpoint = 'https://notify.example.com' )
115
115
assert c .endpoint == 'https://notify.example.com'
116
116
117
+ def test_validate_endpoint_bugsnag_api_key (self ):
118
+ c = Configuration ()
119
+ c .configure (api_key = '12312312312312312312312312321312' )
120
+ assert c .endpoint == 'https://notify.bugsnag.com'
121
+
122
+ def test_validate_endpoint_hub_api_key (self ):
123
+ c = Configuration ()
124
+ c .configure (api_key = '00000312312312312312312312321312' )
125
+ assert c .endpoint == 'https://notify.insighthub.smartbear.com'
126
+
117
127
def test_validate_app_type (self ):
118
128
c = Configuration ()
119
129
assert c .app_type is None
@@ -410,6 +420,17 @@ def test_validate_session_endpoint(self):
410
420
c .configure (session_endpoint = 'https://sessions.example.com' )
411
421
assert c .session_endpoint == 'https://sessions.example.com'
412
422
423
+ def test_validate_session_endpoint_bugsnag_api_key (self ):
424
+ c = Configuration ()
425
+ c .configure (api_key = '12312312312312312312312312321312' )
426
+ assert c .session_endpoint == 'https://sessions.bugsnag.com'
427
+
428
+ def test_validate_session_endpoint_hub_api_key (self ):
429
+ c = Configuration ()
430
+ c .configure (api_key = '00000312312312312312312312321312' )
431
+ assert (c .session_endpoint ==
432
+ 'https://sessions.insighthub.smartbear.com' )
433
+
413
434
def test_validate_traceback_exclude_modules (self ):
414
435
c = Configuration ()
415
436
with pytest .warns (RuntimeWarning ) as record :
0 commit comments