24
24
class OpsgenieNotifyTeamTest (RuleTestCase , PerformanceIssueTestCase ):
25
25
rule_cls = OpsgenieNotifyTeamAction
26
26
27
- def create_integration (self , name ):
27
+ def _create_integration (self , name ):
28
28
integration = self .create_provider_integration (
29
29
provider = "opsgenie" , name = name , external_id = name , metadata = METADATA
30
30
)
@@ -34,7 +34,7 @@ def create_integration(self, name):
34
34
def setUp (self ):
35
35
self .team1 = {"id" : "123-id" , "team" : "cool-team" , "integration_key" : "1234-5678" }
36
36
with assume_test_silo_mode (SiloMode .CONTROL ):
37
- self .integration = self .create_integration (name = "test-app" )
37
+ self .integration = self ._create_integration (name = "test-app" )
38
38
with assume_test_silo_mode (SiloMode .CONTROL ):
39
39
self .org_integration = OrganizationIntegration .objects .get (
40
40
organization_id = self .organization .id , integration_id = self .integration .id
@@ -170,7 +170,7 @@ def test_invalid_int_id(self):
170
170
def test_notifies_with_multiple_og_accounts (self ):
171
171
team2 = {"id" : "456-id" , "team" : "cooler-team" , "integration_key" : "1234-7890" }
172
172
with assume_test_silo_mode (SiloMode .CONTROL ):
173
- integration = self .create_integration ("test-app-2" )
173
+ integration = self ._create_integration ("test-app-2" )
174
174
org_integration = OrganizationIntegration .objects .get (
175
175
organization_id = self .organization .id , integration_id = integration .id
176
176
)
@@ -213,7 +213,7 @@ def test_notifies_with_multiple_og_accounts(self):
213
213
def test_invalid_team_selected (self ):
214
214
team2 = {"id" : "456-id" , "team" : "cooler-team" , "integration_key" : "1234-7890" }
215
215
with assume_test_silo_mode (SiloMode .CONTROL ):
216
- integration = self .create_integration ("test-app-2" )
216
+ integration = self ._create_integration ("test-app-2" )
217
217
org_integration = OrganizationIntegration .objects .get (
218
218
organization_id = self .organization .id , integration_id = integration .id
219
219
)
@@ -248,7 +248,7 @@ def test_bad_integration_key(self):
248
248
def test_team_deleted (self , mock_logger : MagicMock ):
249
249
team2 = {"id" : "456-id" , "team" : "cooler-team" , "integration_key" : "1234-7890" }
250
250
with assume_test_silo_mode (SiloMode .CONTROL ):
251
- integration = self .create_integration ("test-app-2" )
251
+ integration = self ._create_integration ("test-app-2" )
252
252
org_integration = OrganizationIntegration .objects .get (
253
253
organization_id = self .organization .id , integration_id = integration .id
254
254
)
0 commit comments