mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 22:48:16 +00:00
webhooks: Fix spelling of milliseconds.
This commit is contained in:
@@ -182,4 +182,4 @@ def unix_milliseconds_to_timestamp(milliseconds: Any, webhook: str) -> datetime:
|
||||
seconds = milliseconds / 1000
|
||||
return timestamp_to_datetime(seconds)
|
||||
except (ValueError, TypeError):
|
||||
raise JsonableError(_("The {} webhook expects time in milleseconds.").format(webhook))
|
||||
raise JsonableError(_("The {} webhook expects time in milliseconds.").format(webhook))
|
||||
|
||||
@@ -110,7 +110,7 @@ No details.
|
||||
"",
|
||||
content_type="application/json",
|
||||
)
|
||||
self.assertIn("The newrelic webhook expects time in milleseconds.", e.exception.args[0])
|
||||
self.assertIn("The newrelic webhook expects time in milliseconds.", e.exception.args[0])
|
||||
|
||||
def test_time_too_large(self) -> None:
|
||||
with self.assertRaises(AssertionError) as e:
|
||||
@@ -120,4 +120,4 @@ No details.
|
||||
"",
|
||||
content_type="application/json",
|
||||
)
|
||||
self.assertIn("The newrelic webhook expects time in milleseconds.", e.exception.args[0])
|
||||
self.assertIn("The newrelic webhook expects time in milliseconds.", e.exception.args[0])
|
||||
|
||||
Reference in New Issue
Block a user