Skip to content

chore(typing): Remove tests.sentry.api.helpers.test_group_index from mypy ignore list#116199

Merged
shashjar merged 2 commits into
masterfrom
shashjar/type-tests-sentry-api-helpers-test-group-index
May 26, 2026
Merged

chore(typing): Remove tests.sentry.api.helpers.test_group_index from mypy ignore list#116199
shashjar merged 2 commits into
masterfrom
shashjar/type-tests-sentry-api-helpers-test-group-index

Conversation

@shashjar
Copy link
Copy Markdown
Member

Resolves ENG-6460.

Fixes the mypy errors in tests.sentry.api.helpers.test_group_index.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 26, 2026

ENG-6460

@shashjar shashjar requested a review from a team May 26, 2026 16:58
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 26, 2026
@shashjar shashjar requested a review from a team May 26, 2026 16:58
@shashjar shashjar marked this pull request as ready for review May 26, 2026 17:00
@shashjar shashjar requested review from a team as code owners May 26, 2026 17:00
@shashjar shashjar removed request for a team May 26, 2026 17:01
self.assert_analytics_recorded(mock_record)


def _wrap_request(http_request: Any, data: dict[str, Any] | None = None) -> Request:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

curious on why we need this helper? seems like something that we would have a pattern for somewhere else in the codebase

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yea we do have drf_request_from_request but it doesn't handle setting data on the request - apparently that isn't a common pattern in our tests. so instead of adding an optional param there i went with just a local helper

@shashjar shashjar merged commit b006f90 into master May 26, 2026
85 checks passed
@shashjar shashjar deleted the shashjar/type-tests-sentry-api-helpers-test-group-index branch May 26, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants