Skip to content

Conversation

@armenzg
Copy link
Member

@armenzg armenzg commented Oct 24, 2025

Calls to prepare_deletes_by_project are not ordered, thus, adjusting the tests.

Fixes SENTRY-TESTS-19TC.

Calls to `prepare_deletes_by_project` are not ordered, thus, adjusting the tests.

Fixes [SENTRY-TESTS-19TC](https://sentry.sentry.io/issues/6971597318/).
@armenzg armenzg self-assigned this Oct 24, 2025
@armenzg armenzg requested a review from a team October 24, 2025 16:12
@armenzg armenzg marked this pull request as ready for review October 24, 2025 16:12
@armenzg armenzg enabled auto-merge (squash) October 24, 2025 16:12
@armenzg armenzg merged commit 0cbfc4c into master Oct 24, 2025
67 checks passed
@armenzg armenzg deleted the tests/projects_order/cleanup/armenzg branch October 24, 2025 16:13
assert query is not None
project_ids = list(query.values_list("id", flat=True))
assert project_ids == [project1.id, project2.id]
assert sorted(project_ids) == [project1.id, project2.id]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Test Assertions Fail Due to Unsorted Project IDs

The prepare_deletes_by_project tests sort the query results but not the expected project ID lists in the assertions. This makes the tests brittle, as they implicitly rely on project IDs being assigned in ascending order, which could lead to unexpected failures.

Fix in Cursor Fix in Web

priscilawebdev pushed a commit that referenced this pull request Oct 28, 2025
Calls to `prepare_deletes_by_project` are not ordered, thus, adjusting
the tests.

Fixes [SENTRY-TESTS-19TC](https://sentry.sentry.io/issues/6971597318/).
shashjar pushed a commit that referenced this pull request Nov 4, 2025
Calls to `prepare_deletes_by_project` are not ordered, thus, adjusting
the tests.

Fixes [SENTRY-TESTS-19TC](https://sentry.sentry.io/issues/6971597318/).
@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants