Skip to content

Commit 0361e85

Browse files
committed
feat: rename to AuthEvent in tests
1 parent dbf699c commit 0361e85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_firestore_fn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_firestore_endpoint_handler_calls_function_with_correct_args(self):
2222
with patch.dict("sys.modules", mocked_modules):
2323
from cloudevents.http import CloudEvent
2424
from firebase_functions.firestore_fn import _event_type_created_with_auth_context as event_type, \
25-
_firestore_endpoint_handler as firestore_endpoint_handler, EventWithAuthContext
25+
_firestore_endpoint_handler as firestore_endpoint_handler, AuthEvent
2626
from firebase_functions.private import path_pattern
2727

2828
func = Mock(__name__="example_func")
@@ -67,6 +67,6 @@ def test_firestore_endpoint_handler_calls_function_with_correct_args(self):
6767

6868
event = func.call_args.args[0]
6969
self.assertIsNotNone(event)
70-
self.assertIsInstance(event, EventWithAuthContext)
70+
self.assertIsInstance(event, AuthEvent)
7171
self.assertEqual(event.auth_type, "unauthenticated")
7272
self.assertEqual(event.auth_id, "foo")

0 commit comments

Comments
 (0)