mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
python: Replace ujson with orjson.
Fixes #6507. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
123790a72d
commit
61d0417e75
@@ -1,6 +1,6 @@
|
||||
from unittest.mock import patch
|
||||
|
||||
import ujson
|
||||
import orjson
|
||||
|
||||
from zerver.lib.test_classes import WebhookTestCase
|
||||
|
||||
@@ -118,6 +118,6 @@ class SemaphoreHookTests(WebhookTestCase):
|
||||
|
||||
def get_unknown_event(self, fixture_name: str) -> str:
|
||||
"""Return modified payload with revision.reference_type changed"""
|
||||
fixture_data = ujson.loads(self.webhook_fixture_data("semaphore", fixture_name, file_type="json"))
|
||||
fixture_data = orjson.loads(self.webhook_fixture_data("semaphore", fixture_name, file_type="json"))
|
||||
fixture_data['revision']['reference_type'] = 'unknown'
|
||||
return fixture_data
|
||||
|
||||
Reference in New Issue
Block a user