Skip to content

Commit f6eebfe

Browse files
committed
Test that toggle creates an event including the default
1 parent 29bffaa commit f6eebfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_ldclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_toggle_event():
115115
client.toggle('feature.key', user, default=None)
116116

117117
def expected_event(e):
118-
return e['kind'] == 'feature' and e['key'] == 'feature.key' and e['user'] == user and e['value'] == True
118+
return e['kind'] == 'feature' and e['key'] == 'feature.key' and e['user'] == user and e['value'] == True and e['default'] == None
119119

120120
assert expected_event(client._queue.get(False))
121121

0 commit comments

Comments
 (0)