Skip to content

Conversation

@FarhanAnjum-opti
Copy link
Contributor

Summary

Impression event updates related to CMAB.

Test plan

Added unit tests

Issues

FSSDK-11184

- test_optimizely.py fixed to expect new Decision objects
…essages and add a test for handling 500 errors
…lt and updating get_variation return type to include detailed error information
-test cases changed to handle return type dicts of DecisionResult and VariationResult
…or-cmab' into farhan-anjum/FSSDK-11184-update-impression-event-for-cmab
…or-cmab' into farhan-anjum/FSSDK-11184-update-impression-event-for-cmab
…just related logic for improved variation handling"

This reverts commit b901c5f.
@FarhanAnjum-opti FarhanAnjum-opti force-pushed the farhan-anjum/FSSDK-11184-update-impression-event-for-cmab branch from 891aae9 to 73a2802 Compare June 30, 2025 20:09
variation = self.optimizely.get_variation('test_experiment', 'test_user')
self.assertEqual('variation', variation)

# Verify decision notification is sent with correct parameters

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to also assert that the sent logx event contains the uuid in metadata.

@FarhanAnjum-opti FarhanAnjum-opti merged commit 1e8b9ba into master Jul 29, 2025
43 of 44 checks passed
@FarhanAnjum-opti FarhanAnjum-opti deleted the farhan-anjum/FSSDK-11184-update-impression-event-for-cmab branch July 29, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants