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

test(client): Avoid configure_scope #3350

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

szokeasaurusrex
Copy link
Member

Replace the only configure_scope usage in test_client.py, which
can be replaced without defeating the test's purpose, with
Scope.get_isolation_scope. The other configure_scope calls are
made either from a test which specifically tests configure_scope
or from a test which is always skipped.

Closes: #3344

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.78%. Comparing base (132a9c5) to head (1d17d57).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                          Coverage Diff                          @@
##           szokeasaurusrex/configure-scope-1    #3350      +/-   ##
=====================================================================
+ Coverage                              79.64%   79.78%   +0.13%     
=====================================================================
  Files                                    133      133              
  Lines                                  14319    14319              
  Branches                                3009     3009              
=====================================================================
+ Hits                                   11404    11424      +20     
+ Misses                                  2093     2071      -22     
- Partials                                 822      824       +2     

see 15 files with indirect coverage changes

@szokeasaurusrex szokeasaurusrex linked an issue Jul 26, 2024 that may be closed by this pull request
Replace the only `configure_scope` usage in `test_client.py`, which
can be replaced without defeating the test's purpose, with
`Scope.get_isolation_scope`. The other `configure_scope` calls are
made either from a test which specifically tests `configure_scope`
or from a test which is always skipped.

Closes: #3344
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/configure-scope-1 branch from 682f07a to 132a9c5 Compare July 26, 2024 11:57
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/configure-scope-2 branch from 4aa4c01 to 1d17d57 Compare July 26, 2024 11:57
Base automatically changed from szokeasaurusrex/configure-scope-1 to master July 26, 2024 13:27
@szokeasaurusrex szokeasaurusrex merged commit 1d17d57 into master Jul 26, 2024
120 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/configure-scope-2 branch July 26, 2024 13:27
arjennienhuis pushed a commit to arjennienhuis/sentry-python that referenced this pull request Sep 30, 2024
Replace the only `configure_scope` usage in `test_client.py`, which
can be replaced without defeating the test's purpose, with
`Scope.get_isolation_scope`. The other `configure_scope` calls are
made either from a test which specifically tests `configure_scope`
or from a test which is always skipped.

Closes: getsentry#3344
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.

Stop using sentry_sdk.configure_scope in SDK
3 participants