@@ -39,10 +39,6 @@ def generate_data(self, frames: List[Dict[str, Union[str, bool]]], platform: str
39
39
class TestTaskBehavior (BaseDeriveCodeMappings ):
40
40
"""Test task behavior that is not language specific."""
41
41
42
- @pytest .fixture (autouse = True )
43
- def inject_fixtures (self , caplog ):
44
- self ._caplog = caplog
45
-
46
42
def setUp (self ):
47
43
super ().setUp ()
48
44
self .platform = "any"
@@ -57,11 +53,9 @@ def test_does_not_raise_installation_removed(self):
57
53
side_effect = ApiError (
58
54
'{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/apps#create-an-installation-access-token-for-an-app"}'
59
55
),
60
- ), patch ( "sentry.integrations.utils.code_mapping.logger" ) as logger :
56
+ ):
61
57
assert derive_code_mappings (self .project .id , self .event_data ) is None
62
58
63
- assert logger .warning .called_with ("The org has uninstalled the Sentry App." )
64
-
65
59
def test_raises_other_api_errors (self ):
66
60
with patch (
67
61
"sentry.integrations.github.client.GitHubClientMixin.get_trees_for_org" ,
@@ -74,12 +68,10 @@ def test_unable_to_get_lock(self):
74
68
with patch (
75
69
"sentry.integrations.github.client.GitHubClientMixin.get_trees_for_org" ,
76
70
side_effect = UnableToAcquireLock ,
77
- ), patch ( "sentry.integrations.utils.code_mapping.logger" ) as logger :
71
+ ):
78
72
with pytest .raises (UnableToAcquireLock ):
79
73
derive_code_mappings (self .project .id , self .event_data )
80
74
81
- assert logger .warning .called_with ("derive_code_mappings.getting_lock_failed" )
82
-
83
75
84
76
class TestJavascriptDeriveCodeMappings (BaseDeriveCodeMappings ):
85
77
def setUp (self ):
0 commit comments