Skip to content

Commit

Permalink
as apply_modifications_to_frame rather than simple match
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartek Ogryczak committed Mar 28, 2024
1 parent 4c252a0 commit c739b81
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions tests/sentry/grouping/test_enhancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,17 +506,7 @@ def test_app_no_matches(frame):
],
)
def test_basic_package_matching(package):
enhancement = Enhancements.from_config_string(
"""
package:**/foo.bar +app
"""
)
foobar_rule = enhancement.rules[0]

assert bool(
_get_matching_frame_actions(
foobar_rule,
[{"package": package}],
"native",
)
)
enhancements = Enhancements.from_config_string("package:**/foo.bar +app")
frame = {"package": package, "in_app": False}
enhancements.apply_modifications_to_frame([frame], "native", {})
assert frame.get("in_app")

0 comments on commit c739b81

Please sign in to comment.