From a460308d162d25314e280c607107039d5936c42d Mon Sep 17 00:00:00 2001 From: Stephen Cefali Date: Sun, 18 Aug 2024 17:59:10 +0800 Subject: [PATCH] dummy commit --- .../api/endpoints/test_sentry_app_details.py | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/tests/sentry/api/endpoints/test_sentry_app_details.py b/tests/sentry/api/endpoints/test_sentry_app_details.py index f09254f68ff685..14bbb62136d70a 100644 --- a/tests/sentry/api/endpoints/test_sentry_app_details.py +++ b/tests/sentry/api/endpoints/test_sentry_app_details.py @@ -293,13 +293,6 @@ def test_add_service_hooks_and_update_scope(self): self.published_app.save() # for published integrations, it runs in a task - print( - "start test with organization ids: ", - org1.id, - org2.id, - "and application id: ", - self.published_app.application_id, - ) with self.tasks(), outbox_runner(): self.get_success_response( self.published_app.slug, @@ -308,9 +301,6 @@ def test_add_service_hooks_and_update_scope(self): events=("issue",), status_code=200, ) - print( - f"task and outbox runner should be done by now with organization ids: {org1.id}, {org2.id}, application id: {self.published_app.application_id}" - ) self.published_app.refresh_from_db() assert set(self.published_app.scope_list) == {"event:write", "event:read"} assert ( @@ -325,15 +315,11 @@ def test_add_service_hooks_and_update_scope(self): organization_id=org2.id, application_id=self.published_app.application_id ) - assert ( - len(service_hooks_org1) > 0 - ), f"No service hooks found for Org1 (ID: {org1.id}), App ID: {self.published_app.application_id}" - assert ( - len(service_hooks_org2) > 0 - ), f"No service hooks found for Org2 (ID: {org2.id}), App ID: {self.published_app.application_id}" + assert len(service_hooks_org1) > 0, f"No service hooks found for Org1 (ID: {org1.id})" + assert len(service_hooks_org2) > 0, f"No service hooks found for Org2 (ID: {org2.id})" for hook in service_hooks_org1: - assert hook.application_id == self.published_app.id + assert hook.application_id == self.published_app.application_id assert hook.organization_id == org1.id assert hook.actor_id == installation1.id assert hook.url == "https://newurl.com" @@ -347,7 +333,7 @@ def test_add_service_hooks_and_update_scope(self): assert hook.project_id is None for hook in service_hooks_org2: - assert hook.application_id == self.published_app.id + assert hook.application_id == self.published_app.application_id assert hook.organization_id == org2.id assert hook.actor_id == installation2.id assert hook.url == "https://newurl.com"