From 526ec6fab3b6e87504c2a896c9b34121bbb57c79 Mon Sep 17 00:00:00 2001 From: Josh Ferge Date: Fri, 1 Nov 2024 17:19:41 -0400 Subject: [PATCH] ref(releases): remove references to project_id (#80155) remove references in tests to release.project_id. this column is deprecated/not used and will be removed in https://github.com/getsentry/sentry/pull/80151 --- .../api/endpoints/test_organization_release_file_details.py | 4 +--- tests/sentry/api/endpoints/test_organization_release_files.py | 4 +--- .../sentry/api/endpoints/test_project_release_file_details.py | 4 +--- tests/sentry/api/endpoints/test_project_release_files.py | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/tests/sentry/api/endpoints/test_organization_release_file_details.py b/tests/sentry/api/endpoints/test_organization_release_file_details.py index 96635ec40aa994..6ce8e95d81a0a5 100644 --- a/tests/sentry/api/endpoints/test_organization_release_file_details.py +++ b/tests/sentry/api/endpoints/test_organization_release_file_details.py @@ -160,9 +160,7 @@ def test_simple(self): project = self.create_project(name="foo") - release = Release.objects.create( - project_id=project.id, organization_id=project.organization_id, version="1" - ) + release = Release.objects.create(organization_id=project.organization_id, version="1") release.add_project(project) assert release.count_artifacts() == 0 diff --git a/tests/sentry/api/endpoints/test_organization_release_files.py b/tests/sentry/api/endpoints/test_organization_release_files.py index f26c99288e31d2..2d9328b6f89a8d 100644 --- a/tests/sentry/api/endpoints/test_organization_release_files.py +++ b/tests/sentry/api/endpoints/test_organization_release_files.py @@ -379,9 +379,7 @@ def test_bad_headers(self): def test_duplicate_file(self): project = self.create_project(name="foo") - release = Release.objects.create( - project_id=project.id, organization_id=project.organization_id, version="1" - ) + release = Release.objects.create(organization_id=project.organization_id, version="1") release.add_project(project) url = reverse( diff --git a/tests/sentry/api/endpoints/test_project_release_file_details.py b/tests/sentry/api/endpoints/test_project_release_file_details.py index 78bd0924f42f98..23f91a93450144 100644 --- a/tests/sentry/api/endpoints/test_project_release_file_details.py +++ b/tests/sentry/api/endpoints/test_project_release_file_details.py @@ -247,9 +247,7 @@ def test_simple(self): project = self.create_project(name="foo") - release = Release.objects.create( - project_id=project.id, organization_id=project.organization_id, version="1" - ) + release = Release.objects.create(organization_id=project.organization_id, version="1") release.add_project(project) assert release.count_artifacts() == 0 diff --git a/tests/sentry/api/endpoints/test_project_release_files.py b/tests/sentry/api/endpoints/test_project_release_files.py index 482469614ecf7b..c28028e9ebc06c 100644 --- a/tests/sentry/api/endpoints/test_project_release_files.py +++ b/tests/sentry/api/endpoints/test_project_release_files.py @@ -422,9 +422,7 @@ def test_bad_headers(self): def test_duplicate_file(self): project = self.create_project(name="foo") - release = Release.objects.create( - project_id=project.id, organization_id=project.organization_id, version="1" - ) + release = Release.objects.create(organization_id=project.organization_id, version="1") release.add_project(project) url = reverse(