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

integration tests: make randomize_username() the default #3641

Merged
merged 3 commits into from
Jul 3, 2024

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Jul 2, 2024

Most tests would randomize the username when creating a TestClientBuilder; make it the default, since it's a sensible choice, and avoids interference between different tests / test runs.

A single test required an actual non-randomized username, so a specific way to opt out from this new default behavior has been introduced.

@bnjbvr bnjbvr requested a review from a team as a code owner July 2, 2024 14:45
@bnjbvr bnjbvr requested review from andybalaam and removed request for a team July 2, 2024 14:45
Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.17%. Comparing base (fbeb77a) to head (f9fca67).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3641      +/-   ##
==========================================
- Coverage   84.19%   84.17%   -0.02%     
==========================================
  Files         256      256              
  Lines       26594    26594              
==========================================
- Hits        22390    22385       -5     
- Misses       4204     4209       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bnjbvr bnjbvr force-pushed the bnjbvr/it-make-randomize-username-the-default branch from d28348e to 7c60ef9 Compare July 2, 2024 15:14
bnjbvr added 3 commits July 2, 2024 17:15
Most tests would randomize the username when creating a
`TestClientBuilder`; make it the default, since it's a sensible choice,
and avoids interference between different tests / test runs.

A single test required an actual non-randomized username, so a specific
way to opt out from this new default behavior has been introduced.
@bnjbvr bnjbvr force-pushed the bnjbvr/it-make-randomize-username-the-default branch from 7c60ef9 to f9fca67 Compare July 2, 2024 15:15
@bnjbvr bnjbvr merged commit 02b0954 into main Jul 3, 2024
39 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/it-make-randomize-username-the-default branch July 3, 2024 09:30
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.

2 participants