mirror of https://github.com/zulip/zulip.git
requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
f0f048de69
commit
a9fb8dccae
2247
requirements/dev.txt
2247
requirements/dev.txt
File diff suppressed because it is too large
Load Diff
|
@ -15,9 +15,9 @@ babel==2.16.0 \
|
|||
--hash=sha256:368b5b98b37c06b7daf6696391c3240c938b37767d4584413e8438c5c435fa8b \
|
||||
--hash=sha256:d1f3554ca26605fe173f3de0c65f750f5a42f924499bf134de6423582298e316
|
||||
# via sphinx
|
||||
certifi==2024.7.4 \
|
||||
--hash=sha256:5a1e7645bc0ec61a09e26c36f6106dd4cf40c6db3a1fb6352b0244e7fb057c7b \
|
||||
--hash=sha256:c198e21b1289c2ab85ee4e67bb4b4ef3ead0892059901a8d5b622f24a1101e90
|
||||
certifi==2024.8.30 \
|
||||
--hash=sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8 \
|
||||
--hash=sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9
|
||||
# via requests
|
||||
charset-normalizer==3.3.2 \
|
||||
--hash=sha256:06435b539f889b1f6f4ac1758871aae42dc3a8c0e24ac9e60c2384973ad73027 \
|
||||
|
@ -118,9 +118,9 @@ docutils==0.20.1 \
|
|||
# myst-parser
|
||||
# sphinx
|
||||
# sphinx-rtd-theme
|
||||
idna==3.8 \
|
||||
--hash=sha256:050b4e5baadcd44d760cedbd2b8e639f2ff89bbc7a5730fcc662954303377aac \
|
||||
--hash=sha256:d838c2c0ed6fced7693d5e8ab8e734d5f8fda53a039c0164afb0b82e771e3603
|
||||
idna==3.10 \
|
||||
--hash=sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9 \
|
||||
--hash=sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3
|
||||
# via requests
|
||||
imagesize==1.4.1 \
|
||||
--hash=sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b \
|
||||
|
@ -200,9 +200,9 @@ markupsafe==2.1.5 \
|
|||
--hash=sha256:fce659a462a1be54d2ffcacea5e3ba2d74daa74f30f5f143fe0c58636e355fdd \
|
||||
--hash=sha256:ffee1f21e5ef0d712f9033568f8344d5da8cc2869dbd08d87c84656e6a2d2f68
|
||||
# via jinja2
|
||||
mdit-py-plugins==0.4.1 \
|
||||
--hash=sha256:1020dfe4e6bfc2c79fb49ae4e3f5b297f5ccd20f010187acc52af2921e27dc6a \
|
||||
--hash=sha256:834b8ac23d1cd60cec703646ffd22ae97b7955a6d596eb1d304be1e251ae499c
|
||||
mdit-py-plugins==0.4.2 \
|
||||
--hash=sha256:0c673c3f889399a33b95e88d2f0d111b4447bdfea7f237dab2d488f459835636 \
|
||||
--hash=sha256:5f2cd1fdb606ddf152d37ec30e46101a60512bc0e5fa1a7002c36647b09e26b5
|
||||
# via myst-parser
|
||||
mdurl==0.1.2 \
|
||||
--hash=sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8 \
|
||||
|
@ -332,7 +332,7 @@ tomli==2.0.1 \
|
|||
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
|
||||
--hash=sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f
|
||||
# via sphinx
|
||||
urllib3==2.2.2 \
|
||||
--hash=sha256:a448b2f64d686155468037e1ace9f2d2199776e17f0a46610480d311f73e3472 \
|
||||
--hash=sha256:dd505485549a7a552833da5e6063639d0d177c04f23bc3864e41e5dc5f612168
|
||||
urllib3==2.2.3 \
|
||||
--hash=sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac \
|
||||
--hash=sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9
|
||||
# via requests
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 297 # Last bumped for saved_snippets
|
|||
# historical commits sharing the same major version, in which case a
|
||||
# minor version bump suffices.
|
||||
|
||||
PROVISION_VERSION = (292, 4) # added tusd
|
||||
PROVISION_VERSION = (293, 0) # bumped 2024-09-24 to upgrade Python requirements
|
||||
|
|
|
@ -4,6 +4,7 @@ from unittest import mock
|
|||
|
||||
import requests
|
||||
import responses
|
||||
from requests.adapters import HTTPAdapter
|
||||
from typing_extensions import override
|
||||
from urllib3.util import Retry
|
||||
|
||||
|
@ -93,17 +94,25 @@ class TestOutgoingHttp(ZulipTestCase):
|
|||
|
||||
# Defaults to no retries
|
||||
session = requests.Session()
|
||||
assert isinstance(session.adapters["http://"], HTTPAdapter)
|
||||
self.assertEqual(session.adapters["http://"].max_retries.total, 0)
|
||||
assert isinstance(session.adapters["https://"], HTTPAdapter)
|
||||
self.assertEqual(session.adapters["https://"].max_retries.total, 0)
|
||||
|
||||
session = OutgoingSession(role="testing", timeout=1)
|
||||
assert isinstance(session.adapters["http://"], HTTPAdapter)
|
||||
self.assertEqual(session.adapters["http://"].max_retries.total, 0)
|
||||
assert isinstance(session.adapters["https://"], HTTPAdapter)
|
||||
self.assertEqual(session.adapters["https://"].max_retries.total, 0)
|
||||
|
||||
session = OutgoingSession(role="testing", timeout=1, max_retries=2)
|
||||
assert isinstance(session.adapters["http://"], HTTPAdapter)
|
||||
self.assertEqual(session.adapters["http://"].max_retries.total, 2)
|
||||
assert isinstance(session.adapters["https://"], HTTPAdapter)
|
||||
self.assertEqual(session.adapters["https://"].max_retries.total, 2)
|
||||
|
||||
session = OutgoingSession(role="testing", timeout=1, max_retries=Retry(total=5))
|
||||
assert isinstance(session.adapters["http://"], HTTPAdapter)
|
||||
self.assertEqual(session.adapters["http://"].max_retries.total, 5)
|
||||
assert isinstance(session.adapters["https://"], HTTPAdapter)
|
||||
self.assertEqual(session.adapters["https://"].max_retries.total, 5)
|
||||
|
|
Loading…
Reference in New Issue