Skip to content

Commit 1cf3760

Browse files
authored
remove copypasta comments
1 parent ba1608f commit 1cf3760

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/unit/segments/test_segments_evaluator.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,15 +1036,13 @@ def test_get_flag_result_from_feature_context__null_key__calls_returns_expected(
10361036
) -> None:
10371037
# Given
10381038
expected_feature_context_key = "2"
1039+
# a None key is provided (no identity context present)
10391040
expected_key = None
10401041

1041-
# we mock the function which gets the percentage value for an identity to
1042-
# return a deterministic value so we know which value to expect
10431042
get_hashed_percentage_for_object_ids_mock = mocker.patch(
10441043
"flag_engine.segments.evaluator.get_hashed_percentage_for_object_ids",
10451044
)
10461045

1047-
# and have a feature context with some multivariate feature options and associated values
10481046
feature_context: FeatureContext = {
10491047
"key": expected_feature_context_key,
10501048
"feature_key": "1",
@@ -1064,7 +1062,7 @@ def test_get_flag_result_from_feature_context__null_key__calls_returns_expected(
10641062
)
10651063

10661064
# Then
1067-
# the value of the feature state is correct based on the percentage value returned
1065+
# the value of the feature state is the default one
10681066
assert result == {
10691067
"enabled": False,
10701068
"feature_key": "1",

0 commit comments

Comments
 (0)