Skip to content

Commit 20ed5b7

Browse files
test(basics): Replace push_scope (#3353)
Most of the `push_scope` usages in `test_basics.py` need to stay, as they test functionality specific to `push_scope`. However, in `test_scope_event_processor_order`, the `push_scope` can be replaced with `new_scope`. We make this replacement here. Ref: #3345
1 parent 6f11f50 commit 20ed5b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_basics.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
last_event_id,
2323
add_breadcrumb,
2424
isolation_scope,
25+
new_scope,
2526
Hub,
2627
Scope,
2728
)
@@ -606,14 +607,14 @@ def before_send(event, hint):
606607
sentry_init(debug=True, before_send=before_send)
607608
events = capture_events()
608609

609-
with push_scope() as scope:
610+
with new_scope() as scope:
610611

611612
@scope.add_event_processor
612613
def foo(event, hint):
613614
event["message"] += "foo"
614615
return event
615616

616-
with push_scope() as scope:
617+
with new_scope() as scope:
617618

618619
@scope.add_event_processor
619620
def bar(event, hint):

0 commit comments

Comments
 (0)