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:
Anders Kaseorg
2020-05-25 22:16:25 -07:00
committed by Tim Abbott
parent 7f1cafd108
commit 840cf4b885
92 changed files with 106 additions and 108 deletions

View File

@@ -4,7 +4,7 @@ import ujson
from django.core import mail
from django.test import override_settings
from mock import patch, MagicMock
from unittest.mock import patch, MagicMock
from typing import Any, Dict, List, Mapping, Optional
from zerver.lib.actions import do_change_stream_invite_only, do_deactivate_user, \