Skip to content

Commit

Permalink
ref(releases): remove references to project_id (#80155)
Browse files Browse the repository at this point in the history
remove references in tests to release.project_id. this column is
deprecated/not used and will be removed in
#80151
  • Loading branch information
JoshFerge authored Nov 1, 2024
1 parent 81f9f62 commit 526ec6f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions tests/sentry/api/endpoints/test_project_release_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 526ec6f

Please sign in to comment.