Skip to content

Commit 24fcff8

Browse files
committed
feat: add assertion to test
1 parent 04a7e52 commit 24fcff8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_pubsub_fn.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,8 @@ def test_datetime_without_mircroseconds_doesnt_throw(self):
152152
"subscription": "my-subscription",
153153
},
154154
)
155-
_message_handler(lambda _: None, raw_event)
155+
try:
156+
_message_handler(lambda _: None, raw_event)
157+
except Exception:
158+
self.fail(
159+
"Datetime without microseconds should not throw an exception")

0 commit comments

Comments
 (0)