Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect use of HttpRequest in Ask CFPB tests #8465

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

chosak
Copy link
Member

@chosak chosak commented Jun 11, 2024

These Ask CFPB tests are trying to create an HttpRequest for a specific user, but instead of creating a new instance and modifying it, they modify the HttpRequest class itself.

This has side effects for other Python unit tests that need to use HttpRequest objects, because they always get the user that was assigned here.

How to test this PR

All tests continue to pass.

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code follows the standards laid out in the CFPB development guidelines

These Ask CFPB tests are trying to create an HttpRequest for a specific user, but instead of creating a new instance and modifying it, they modify the HttpRequest class itself.

This has side effects for other Python unit tests that need to use HttpRequest objects, because they always get the user that was assigned here.
@chosak chosak requested review from wpears and willbarton June 11, 2024 21:58
@chosak chosak added this pull request to the merge queue Jun 12, 2024
Merged via the queue into main with commit e4c5597 Jun 12, 2024
12 checks passed
@chosak chosak deleted the fix/ask-cfpb-httprequest branch June 12, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants