Skip to content

Commit 97ad971

Browse files
mifu67ceorourke
andauthored
Update tests/sentry/incidents/subscription_processor/test_subscription_processor_base.py
Co-authored-by: Colleen O'Rourke <[email protected]>
1 parent 9523b3a commit 97ad971

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/sentry/incidents/subscription_processor/test_subscription_processor_base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ def resolve_threshold(self):
160160

161161
def get_snuba_query(self, detector: Detector):
162162
data_source_detector = DataSourceDetector.objects.get(detector=detector)
163-
data_source = DataSource.objects.get(id=data_source_detector.data_source.id)
164-
query_subscription = QuerySubscription.objects.get(id=data_source.source_id)
163+
query_subscription = QuerySubscription.objects.get(id=data_source_detector.data_source.source_id)
165164
snuba_query = SnubaQuery.objects.get(id=query_subscription.snuba_query.id)
166165
return snuba_query
167166

0 commit comments

Comments
 (0)