mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
requirements: Drop direct dependency on mock.
mock is just a backport of the standard library’s unittest.mock now. The SAMLAuthBackendTest change is needed because MagicMock.call_args.args wasn’t introduced until Python 3.8 (https://bugs.python.org/issue21269). The PROVISION_VERSION bump is skipped because mock is still an indirect dev requirement via moto. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
7f1cafd108
commit
840cf4b885
@@ -1,4 +1,4 @@
|
||||
import mock
|
||||
from unittest import mock
|
||||
from unittest import TestCase
|
||||
|
||||
from scripts.lib.check_rabbitmq_queue import (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
|
||||
from mock import patch
|
||||
from unittest.mock import patch
|
||||
from unittest import TestCase
|
||||
|
||||
from zulint.custom_rules import RuleList
|
||||
|
||||
Reference in New Issue
Block a user