Skip to content

Commit 1532b85

Browse files
author
Inbal Tako
committed
Fix tests
1 parent e845907 commit 1532b85

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

securenative/event_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def stop_event_persist(self):
129129
def serialize(obj):
130130
return {
131131
"rid": obj.rid,
132-
"eventType": obj.event_type,
132+
"eventType": obj.event_type if isinstance(obj.event_type, str) else obj.event_type.value,
133133
"userId": obj.user_id,
134134
"userTraits": {
135135
"name": obj.user_traits.name if obj.user_traits else "",

tests/api_manager_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class ApiManagerTest(unittest.TestCase):
1919
def setUp(self):
2020
self.context = ContextBuilder(). \
2121
with_ip("127.0.0.1"). \
22-
with_client_token("SECURED_CLIENT_TOKEN"). \
2322
with_headers(
2423
{
2524
"user-agent": "Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405"

0 commit comments

Comments
 (0)