You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Assert that capture was called once, with the correct parameters
4166
-
self.assertEqual(patch_capture.call_count, 1)
4167
-
patch_capture.assert_called_with(
4168
-
"$feature_flag_called",
4169
-
distinct_id="some-distinct-id",
4170
-
properties={
4171
-
"$feature_flag": "person-flag",
4172
-
"$feature_flag_response": True,
4173
-
"locally_evaluated": True,
4174
-
"$feature/person-flag": True,
4175
-
},
4176
-
groups={},
4177
-
disable_geoip=None,
4178
-
)
4179
-
4180
-
# Reset mocks for further tests
4181
-
patch_capture.reset_mock()
4182
-
patch_flags.reset_mock()
4183
-
4184
-
# Call get_feature_flag_payload again for the same user; capture should not be called again because we've already reported an event for this distinct_id + flag
0 commit comments