Skip to content

Commit 4724035

Browse files
committed
fix tets
1 parent c437ecd commit 4724035

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/sentry/grouping/test_grouphash_metadata.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from sentry.eventstore.models import Event
99
from sentry.grouping.api import get_default_grouping_config_dict
1010
from sentry.grouping.component import BaseGroupingComponent
11-
from sentry.grouping.ingest.grouphash_metadata import _get_hash_basis
11+
from sentry.grouping.ingest.grouphash_metadata import get_hash_basis_and_metadata
1212
from sentry.grouping.strategies.configurations import CONFIGURATIONS
1313
from sentry.grouping.variants import ComponentVariant
1414
from sentry.models.project import Project
@@ -19,6 +19,7 @@
1919
GroupingInput,
2020
dump_variant,
2121
get_snapshot_path,
22+
to_json,
2223
with_grouping_inputs,
2324
)
2425

@@ -130,8 +131,9 @@ def _assert_and_snapshot_results(
130131
lines: list[str] = []
131132
variants = event.get_grouping_variants()
132133

133-
hash_basis = _get_hash_basis(event, project, variants)
134+
hash_basis, hashing_metadata = get_hash_basis_and_metadata(event, project, variants)
134135
lines.append("hash_basis: %s" % hash_basis)
136+
lines.append("hashing_metadata: %s" % to_json(hashing_metadata, pretty_print=True))
135137
lines.append("-" * 3)
136138

137139
lines.append("contributing variants:")

0 commit comments

Comments
 (0)