python: Replace ujson with orjson.

Fixes #6507.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-08-06 16:09:47 -07:00
committed by Tim Abbott
parent 123790a72d
commit 61d0417e75
132 changed files with 1319 additions and 1238 deletions

View File

@@ -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